Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtlwifi: use PCI_VENDOR_ID_*

Use PCI_VENDOR_ID_* from pci_ids.h instead of creating #define locally.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Jon Mason and committed by
John W. Linville
f01dce94 6a4ecc29

+4 -10
+4 -4
drivers/net/wireless/rtlwifi/pci.c
··· 35 35 #include "efuse.h" 36 36 37 37 static const u16 pcibridge_vendors[PCI_BRIDGE_VENDOR_MAX] = { 38 - INTEL_VENDOR_ID, 39 - ATI_VENDOR_ID, 40 - AMD_VENDOR_ID, 41 - SIS_VENDOR_ID 38 + PCI_VENDOR_ID_INTEL, 39 + PCI_VENDOR_ID_ATI, 40 + PCI_VENDOR_ID_AMD, 41 + PCI_VENDOR_ID_SI 42 42 }; 43 43 44 44 static const u8 ac_to_hwq[] = {
-6
drivers/net/wireless/rtlwifi/pci.h
··· 62 62 .subdevice = PCI_ANY_ID,\ 63 63 .driver_data = (kernel_ulong_t)&(cfg) 64 64 65 - #define INTEL_VENDOR_ID 0x8086 66 - #define SIS_VENDOR_ID 0x1039 67 - #define ATI_VENDOR_ID 0x1002 68 - #define ATI_DEVICE_ID 0x7914 69 - #define AMD_VENDOR_ID 0x1022 70 - 71 65 #define PCI_MAX_BRIDGE_NUMBER 255 72 66 #define PCI_MAX_DEVICES 32 73 67 #define PCI_MAX_FUNCTION 8