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)
commitafd5b1704cb15eabc4358b7b0dd7f33099408eaa
tree5e1d9e2c485d5f8aa700f857fb7faaa184cb8f38
parent91f66a3c672065a3aca387ca7e0028504bb8f457
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