]> 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)
commit9aeeee77e23054e143f2567b1ea8b0ba4e5cf865
treefd5dfb4e48d16d8489993bccab2c167456aeb088
parent76d773ddd2fc80753ead7591f07de8eb61869f6f
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