Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
olpc_battery: Fix endian neutral breakage for s16 values
commit 7cfbb29 upstream. When the driver was updated to be endian neutral (8e9c771) the signed part of the s16 values was lost. This is because be16_to_cpu() returns an unsigned value. This patch casts the values back to a s16 number prior to the the implicit cast up to an int. Signed-off-by: Richard A. Smith <[email protected]> Signed-off-by: Daniel Drake <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
- Loading branch information