Skip to content
Snippets Groups Projects
Commit baf5964e authored by Lubomir Rintel's avatar Lubomir Rintel Committed by Sebastian Reichel
Browse files

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: default avatarLubomir Rintel <lkundrak@v3.sk>
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Fixes: 76311b9a ("power: supply: olpc_battery: Add OLPC XO 1.75 support")
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent c8f3c9fe
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment