OSDN Git Service

iwlwifi: move iwl_nvm_check_version() into dvm
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 16 Aug 2018 06:23:08 +0000 (09:23 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 14 Dec 2018 11:04:46 +0000 (13:04 +0200)
commit64866e5da1eabd0c52ff45029b245f5465920031
tree399859acf014f5bf160c0cddd0f57baf4f50c689
parent4aeaccd6b5f05a20fd3154581f1ec2e6793cd998
iwlwifi: move iwl_nvm_check_version() into dvm

This function is only half-used by mvm (i.e. only the nvm_version part
matters, since the calibration version is irrelevant), so it's
pointless to export it from iwlwifi.  If mvm uses this function, it
has the additional complexity of setting the calib version to a bogus
value on all cfg structs.

To avoid this, move the function to dvm and make a simple comparison
of the nvm_version in mvm instead.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/main.c
drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c
drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h
drivers/net/wireless/intel/iwlwifi/mvm/fw.c