Commit ff167639 authored by Bjoern A. Zeeb's avatar Bjoern A. Zeeb Committed by Luca Coelho

iwlwifi: iwl-eeprom-parse: mostly dvm only

Most of iwl-eeprom-parse.c is only used for dvm but not for mvm.
Hide the parts under #if IS_ENABLED(CONFIG_IWLDVM) to reduce size
and code surface for mvm-only builds.

Sponsored by:  The FreeBSD Foundation
Signed-off-by: default avatarBjoern A. Zeeb <bz@FreeBSD.ORG>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 2ac885f4
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "iwl-modparams.h" #include "iwl-modparams.h"
#include "iwl-eeprom-parse.h" #include "iwl-eeprom-parse.h"
#if IS_ENABLED(CONFIG_IWLDVM)
/* EEPROM offset definitions */ /* EEPROM offset definitions */
/* indirect access definitions */ /* indirect access definitions */
...@@ -647,6 +648,7 @@ static int iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg, ...@@ -647,6 +648,7 @@ static int iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg,
return n_channels; return n_channels;
} }
#endif
int iwl_init_sband_channels(struct iwl_nvm_data *data, int iwl_init_sband_channels(struct iwl_nvm_data *data,
struct ieee80211_supported_band *sband, struct ieee80211_supported_band *sband,
...@@ -750,6 +752,7 @@ void iwl_init_ht_hw_capab(struct iwl_trans *trans, ...@@ -750,6 +752,7 @@ void iwl_init_ht_hw_capab(struct iwl_trans *trans,
} }
} }
#if IS_ENABLED(CONFIG_IWLDVM)
static void iwl_init_sbands(struct iwl_trans *trans, const struct iwl_cfg *cfg, static void iwl_init_sbands(struct iwl_trans *trans, const struct iwl_cfg *cfg,
struct iwl_nvm_data *data, struct iwl_nvm_data *data,
const u8 *eeprom, size_t eeprom_size) const u8 *eeprom, size_t eeprom_size)
...@@ -873,3 +876,4 @@ iwl_parse_eeprom_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, ...@@ -873,3 +876,4 @@ iwl_parse_eeprom_data(struct iwl_trans *trans, const struct iwl_cfg *cfg,
return NULL; return NULL;
} }
IWL_EXPORT_SYMBOL(iwl_parse_eeprom_data); IWL_EXPORT_SYMBOL(iwl_parse_eeprom_data);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment