]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
can: sja1000: plx_pci: Reuse predefined CTI subvendor ID
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 May 2024 12:38:52 +0000 (15:38 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 20 Jun 2024 09:52:56 +0000 (11:52 +0200)
There is predefined PCI_SUBVENDOR_ID_CONNECT_TECH, use it in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/all/20240502123852.2631577-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/plx_pci.c

index 5de1ebb0c6f04c09713ca23c5a679f1f66673c2f..67e5316c6372a315649aef44b90f788cc9a6d744 100644 (file)
@@ -122,7 +122,6 @@ struct plx_pci_card {
 #define TEWS_PCI_VENDOR_ID             0x1498
 #define TEWS_PCI_DEVICE_ID_TMPC810     0x032A
 
-#define CTI_PCI_VENDOR_ID              0x12c4
 #define CTI_PCI_DEVICE_ID_CRG001       0x0900
 
 #define MOXA_PCI_VENDOR_ID             0x1393
@@ -358,7 +357,7 @@ static const struct pci_device_id plx_pci_tbl[] = {
        {
                /* Connect Tech Inc. CANpro/104-Plus Opto (CRG001) card */
                PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
-               CTI_PCI_VENDOR_ID, CTI_PCI_DEVICE_ID_CRG001,
+               PCI_SUBVENDOR_ID_CONNECT_TECH, CTI_PCI_DEVICE_ID_CRG001,
                0, 0,
                (kernel_ulong_t)&plx_pci_card_info_cti
        },