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: NLubomir Rintel <lkundrak@v3.sk> Reported-by: Nkbuild test robot <lkp@intel.com> Fixes: 76311b9a ("power: supply: olpc_battery: Add OLPC XO 1.75 support") Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
Showing
想要评论请 注册 或 登录