]> git.itanic.dy.fi Git - linux-stable/commitdiff
wifi: rtlwifi: Remove unused PCI related defines and struct
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 24 Nov 2023 08:47:24 +0000 (10:47 +0200)
committerKalle Valo <kvalo@kernel.org>
Fri, 1 Dec 2023 12:41:05 +0000 (14:41 +0200)
The rtlwifi driver comes with a number of PCI related defines that are
unused and many would be provided by PCI core anyway if they'd be
needed again.

Similarly, the struct rtl_pci_capabilities_header is unused and no
driver should come up their own way to access PCI Capabilities anyway.

Remove the unused/duplicated PCI related defines and struct.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231124084725.12738-10-ilpo.jarvinen@linux.intel.com
drivers/net/wireless/realtek/rtlwifi/pci.h

index ba25bc6d3acb5ce7f6f8074b0fd319bd591ca343..7556f3975fe660878d7ecd1e306be3792b97704a 100644 (file)
 #define ATI_DEVICE_ID                          0x7914
 #define AMD_VENDOR_ID                          0x1022
 
-#define PCI_MAX_BRIDGE_NUMBER                  255
-#define PCI_MAX_DEVICES                                32
-#define PCI_MAX_FUNCTION                       8
-
-#define PCI_CONF_ADDRESS       0x0CF8  /*PCI Configuration Space Address */
-#define PCI_CONF_DATA          0x0CFC  /*PCI Configuration Space Data */
-
-#define PCI_CLASS_BRIDGE_DEV           0x06
-#define PCI_SUBCLASS_BR_PCI_TO_PCI     0x04
-#define PCI_CAPABILITY_ID_PCI_EXPRESS  0x10
-#define PCI_CAP_ID_EXP                 0x10
-
 #define U1DONTCARE                     0xFF
 #define U2DONTCARE                     0xFFFF
 #define U4DONTCARE                     0xFFFFFFFF
@@ -113,11 +101,6 @@ enum pci_bridge_vendor {
        PCI_BRIDGE_VENDOR_MAX,
 };
 
-struct rtl_pci_capabilities_header {
-       u8 capability_id;
-       u8 next;
-};
-
 /* In new TRX flow, Buffer_desc is new concept
  * But TX wifi info == TX descriptor in old flow
  * RX wifi info == RX descriptor in old flow