]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iwlwifi: remove useless NVM_HW_SECTION_NUM_FAMILY_* macros
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 16 Aug 2018 06:01:31 +0000 (09:01 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 14 Dec 2018 11:04:46 +0000 (13:04 +0200)
These macros are useless because each one of them is used only once
and the element they are assigned to is already pretty clear about
what they mean, "nvm_hw_section_num".

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/cfg/22000.c
drivers/net/wireless/intel/iwlwifi/cfg/7000.c
drivers/net/wireless/intel/iwlwifi/cfg/8000.c
drivers/net/wireless/intel/iwlwifi/cfg/9000.c

index 2d395a4a5375470237c9b478f2bbd0acc48d24b7..157ff1f76ba62fe938e1c21ec7e2717a064b8b83 100644 (file)
 #define IWL_QU_B_JF_B_MODULE_FIRMWARE(api) \
        IWL_QU_B_JF_B_FW_PRE __stringify(api) ".ucode"
 
-#define NVM_HW_SECTION_NUM_FAMILY_22000                10
-
 static const struct iwl_base_params iwl_22000_base_params = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 512,
@@ -142,7 +140,7 @@ static const struct iwl_ht_params iwl_22000_ht_params = {
        .ucode_api_max = IWL_22000_UCODE_API_MAX,                       \
        .ucode_api_min = IWL_22000_UCODE_API_MIN,                       \
        .led_mode = IWL_LED_RF_STATE,                                   \
-       .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_22000,          \
+       .nvm_hw_section_num = 10,                                       \
        .non_shared_ant = ANT_B,                                        \
        .dccm_offset = IWL_22000_DCCM_OFFSET,                           \
        .dccm_len = IWL_22000_DCCM_LEN,                                 \
index 38d5db50b1eded5506558b8fb5ae5926c4554b5d..5b4efa8ddffbaf11c6ac824b477331662c953f44 100644 (file)
 #define IWL7265D_FW_PRE "iwlwifi-7265D-"
 #define IWL7265D_MODULE_FIRMWARE(api) IWL7265D_FW_PRE __stringify(api) ".ucode"
 
-#define NVM_HW_SECTION_NUM_FAMILY_7000         0
-
 static const struct iwl_base_params iwl7000_base_params = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_16K,
        .num_of_queues = 31,
@@ -159,7 +157,7 @@ static const struct iwl_ht_params iwl7000_ht_params = {
        .device_family = IWL_DEVICE_FAMILY_7000,                \
        .base_params = &iwl7000_base_params,                    \
        .led_mode = IWL_LED_RF_STATE,                           \
-       .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_7000,   \
+       .nvm_hw_section_num = 0,                                \
        .non_shared_ant = ANT_A,                                \
        .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,    \
        .dccm_offset = IWL7000_DCCM_OFFSET,                     \
index dd2785e65f80071ef93016ebe8f72d0089077cb9..5b1da52063365445abcff99eb1a81cc0ab853d4d 100644 (file)
@@ -93,7 +93,6 @@
 #define IWL8265_MODULE_FIRMWARE(api) \
        IWL8265_FW_PRE __stringify(api) ".ucode"
 
-#define NVM_HW_SECTION_NUM_FAMILY_8000         10
 #define DEFAULT_NVM_FILE_FAMILY_8000C          "nvmData-8000C"
 
 static const struct iwl_base_params iwl8000_base_params = {
@@ -139,7 +138,7 @@ static const struct iwl_tt_params iwl8000_tt_params = {
        .device_family = IWL_DEVICE_FAMILY_8000,                        \
        .base_params = &iwl8000_base_params,                            \
        .led_mode = IWL_LED_RF_STATE,                                   \
-       .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_8000,           \
+       .nvm_hw_section_num = 10,                                       \
        .features = NETIF_F_RXCSUM,                                     \
        .non_shared_ant = ANT_A,                                        \
        .dccm_offset = IWL8260_DCCM_OFFSET,                             \
index 1bc12f8b716d8ab6298991bf9842db4c6a31836a..b589b0e9d515b6924b5d70aa1327aa61dbe49c23 100644 (file)
@@ -90,8 +90,6 @@
 #define IWL9260B_MODULE_FIRMWARE(api) \
        IWL9260B_FW_PRE __stringify(api) ".ucode"
 
-#define NVM_HW_SECTION_NUM_FAMILY_9000         10
-
 static const struct iwl_base_params iwl9000_base_params = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
        .num_of_queues = 31,
@@ -137,7 +135,7 @@ static const struct iwl_tt_params iwl9000_tt_params = {
        .device_family = IWL_DEVICE_FAMILY_9000,                        \
        .base_params = &iwl9000_base_params,                            \
        .led_mode = IWL_LED_RF_STATE,                                   \
-       .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_9000,           \
+       .nvm_hw_section_num = 10,                                       \
        .non_shared_ant = ANT_B,                                        \
        .dccm_offset = IWL9000_DCCM_OFFSET,                             \
        .dccm_len = IWL9000_DCCM_LEN,                                   \