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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:14 +0000 (09:20 +0100)
commitccc084cdf1337f844154277d1a4ebfcb2b9be008
treeb6d3909c9b62b568acfa33e8bc75b8edd4fd2521
parent694c90cd5ba72ebf820209f741fe26084733485f
iwlwifi: move iwl_nvm_check_version() into dvm

[ Upstream commit 64866e5da1eabd0c52ff45029b245f5465920031 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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