can: ems_pci: move ASIX AX99100 ids to pci_ids.h
authorJiaqing Zhao <jiaqing.zhao@linux.intel.com>
Mon, 24 Jul 2023 08:39:31 +0000 (08:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2023 11:54:56 +0000 (13:54 +0200)
Move PCI Vendor and Device ID of ASIX AX99100 PCIe to Multi I/O
Controller to pci_ids.h for its serial and parallel port driver
support in subsequent patches.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20230724083933.3173513-3-jiaqing.zhao@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/sja1000/ems_pci.c
include/linux/pci_ids.h

index 3e18c63a982ce3098aaf7e77902abe9eaf9833c6..1aaedaf866f1e9070f6520b26de1bb1215f045fb 100644 (file)
@@ -108,10 +108,6 @@ struct ems_pci_card {
 
 #define EMS_PCI_BASE_SIZE  4096 /* size of controller area */
 
-#ifndef PCI_VENDOR_ID_ASIX
-#define PCI_VENDOR_ID_ASIX 0x125b
-#define PCI_DEVICE_ID_ASIX_9110 0x9110
-#endif
 #define PCI_SUBDEVICE_ID_EMS 0x4010
 
 static const struct pci_device_id ems_pci_tbl[] = {
@@ -122,7 +118,7 @@ static const struct pci_device_id ems_pci_tbl[] = {
        /* CPC-104P v2 */
        {PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030, PCI_VENDOR_ID_PLX, 0x4002},
        /* CPC-PCIe v3 */
-       {PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_9110, 0xa000, PCI_SUBDEVICE_ID_EMS},
+       {PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_AX99100_LB, 0xa000, PCI_SUBDEVICE_ID_EMS},
        {0,}
 };
 MODULE_DEVICE_TABLE(pci, ems_pci_tbl);
index 2dc75df1437fbe3302c9caf7261cf66297f784a7..16608ce4fd0fab963aa14ddb04a6c3db2cd4c729 100644 (file)
 #define PCI_SUBDEVICE_ID_AT_2700FX     0x2701
 #define PCI_SUBDEVICE_ID_AT_2701FX     0x2703
 
+#define PCI_VENDOR_ID_ASIX             0x125b
+#define PCI_DEVICE_ID_ASIX_AX99100     0x9100
+#define PCI_DEVICE_ID_ASIX_AX99100_LB  0x9110
+
 #define PCI_VENDOR_ID_ESS              0x125d
 #define PCI_DEVICE_ID_ESS_ESS1968      0x1968
 #define PCI_DEVICE_ID_ESS_ESS1978      0x1978