ice: use __le16 types for explicitly Little Endian values
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 12 Mar 2020 01:58:10 +0000 (18:58 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 21 Mar 2020 06:38:40 +0000 (23:38 -0700)
commit2efefb56f92689b2e216857834df69dd3ea47d2b
tree5202b4bee3771b9f611f0bebedeecc1dad9c092b
parent0d7043f355d0045bd38b025630a7defefa3ec07f
ice: use __le16 types for explicitly Little Endian values

The ice_read_sr_aq function returns words in the Little Endian format.
Remove the need for __force and typecasting by using a local variable in
the ice_read_sr_word_aq function.

Additionally clarify explicitly that the ice_read_sr_aq function takes
storage for __le16 values instead of using u16.

Being explicit about the endianness of this data helps when using tools
like sparse to catch endian-related issues.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_nvm.c