Commit d2a18bbc authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman
Browse files

sub: cdns2: 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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240913132125.3630860-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93907620
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -15,8 +15,7 @@
#include "cdns2-gadget.h"

#define PCI_DRIVER_NAME		"cdns-pci-usbhs"
#define CDNS_VENDOR_ID		0x17cd
#define CDNS_DEVICE_ID		0x0120
#define PCI_DEVICE_ID_CDNS_USB2	0x0120
#define PCI_BAR_DEV		0
#define PCI_DEV_FN_DEVICE	0

@@ -114,8 +113,8 @@ static const struct dev_pm_ops cdns2_pci_pm_ops = {
};

static const struct pci_device_id cdns2_pci_ids[] = {
	{ PCI_VENDOR_ID_CDNS, CDNS_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,
	  PCI_CLASS_SERIAL_USB_DEVICE, PCI_ANY_ID },
	{ PCI_DEVICE(PCI_VENDOR_ID_CDNS, PCI_DEVICE_ID_CDNS_USB2),
	  .class = PCI_CLASS_SERIAL_USB_DEVICE },
	{ 0, }
};