]> git.baikalelectronics.ru Git - kernel.git/commit
e100: handle eeprom as little endian
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 26 Mar 2021 00:38:24 +0000 (17:38 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 26 May 2021 16:11:40 +0000 (09:11 -0700)
commitd4ef55288aa2e1b76033717242728ac98ddc4721
treefd5dfb4e48d16d8489993bccab2c167456aeb088
parente4e92ee78702b13ad55118d8b66f06e1aef62586
e100: handle eeprom as little endian

Sparse tool was warning on some implicit conversions from
little endian data read from the EEPROM on the e100 cards.

Fix these by being explicit about the conversions using
le16_to_cpu().

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e100.c