]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: olpc_battery: force the le/be casts
authorLubomir Rintel <lkundrak@v3.sk>
Sat, 11 May 2019 08:56:14 +0000 (10:56 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 14 May 2019 21:17:56 +0000 (23:17 +0200)
commit335ab6cd88d3baaa32f0cb9da0fa5b92d5934d1d
tree595f2fd4be71744c0b1edd364a4b9a681adb8556
parentfb57a5e6cf08a1159138b251b1757744f091b580
power: supply: olpc_battery: force the le/be casts

The endianness of data returned from the EC depends on the particular EC
version determined at run time. Cast from little/big endian explicitey
in the routine that flips endianness to the native one to make sparse
happy.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 2dea179f311c ("power: supply: olpc_battery: Add OLPC XO 1.75 support")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/olpc_battery.c