diff options
| author | Andy Shevchenko <[email protected]> | 2024-09-13 13:17:10 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-09-13 13:39:06 +0000 |
| commit | 68d4209158f43a558c5553ea95ab0c8975eab18c (patch) | |
| tree | bc5e3c4b095606002806ae5b8e1db8a24614e3e5 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | sub: cdns2: Use predefined PCI vendor ID constant (diff) | |
| download | kernel-68d4209158f43a558c5553ea95ab0c8975eab18c.tar.gz kernel-68d4209158f43a558c5553ea95ab0c8975eab18c.zip | |
sub: cdns3: Use predefined PCI vendor ID constant
The PCI vendor ID for Cadence is defined in pci_ids.h. Use it.
While at it, move to PCI_DEVICE() macro and usual pattern for
PCI class and device IDs.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
| -rw-r--r-- | drivers/usb/cdns3/cdns3-pci-wrap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/cdns3/cdns3-pci-wrap.c b/drivers/usb/cdns3/cdns3-pci-wrap.c index 1f6320d98a76..591d149de8f3 100644 --- a/drivers/usb/cdns3/cdns3-pci-wrap.c +++ b/drivers/usb/cdns3/cdns3-pci-wrap.c @@ -37,8 +37,7 @@ struct cdns3_wrap { #define PCI_DRIVER_NAME "cdns3-pci-usbss" #define PLAT_DRIVER_NAME "cdns-usb3" -#define CDNS_VENDOR_ID 0x17cd -#define CDNS_DEVICE_ID 0x0100 +#define PCI_DEVICE_ID_CDNS_USB3 0x0100 static struct pci_dev *cdns3_get_second_fun(struct pci_dev *pdev) { @@ -190,7 +189,7 @@ static void cdns3_pci_remove(struct pci_dev *pdev) } static const struct pci_device_id cdns3_pci_ids[] = { - { PCI_DEVICE(CDNS_VENDOR_ID, CDNS_DEVICE_ID), }, + { PCI_VDEVICE(CDNS, PCI_DEVICE_ID_CDNS_USB3) }, { 0, } }; |
