]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf4a3aa03ddefae741bec6bf73bbaa501b77d3ca
tree399859acf014f5bf160c0cddd0f57baf4f50c689
parent57e9eaef1c9a3e51a0de2f343d6f1af216debfae
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