]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: refactor the code that reads the MAC address from the NVM
authorSara Sharon <sara.sharon@intel.com>
Tue, 1 Mar 2016 10:18:22 +0000 (12:18 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Mar 2016 11:33:00 +0000 (13:33 +0200)
commit0b5829d450ed3c39a7b7a58244b9640a8199d4f6
tree5e1d9e2c485d5f8aa700f857fb7faaa184cb8f38
parenta51c68f50cc379827c185973f656b4a0f3d28b1c
iwlwifi: refactor the code that reads the MAC address from the NVM

It makes it slightly easier to follow. Pass the pointer to
the transport which allows to read WFMP_MAC_ADDR_X register
only when needed and to use IWL_ERR instead of the less
commonly used IWL_ERR_DEV logger macro.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c