summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRichard A. Smith <richard@laptop.org>2010-09-25 19:19:26 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-21 12:43:43 -0700
commitf2318dc7f5c66e3cd21eaf8ce92d0b0298bed1fb (patch)
tree2b9a2732dc8f9bb595869bbcecc5be3bad70e6f6 /lib
parenta8db638a4812c4b171f567c973c6c4d67b9f15c2 (diff)
olpc_battery: Fix endian neutral breakage for s16 values
commit 7cfbb29466633e6ecdc14f76a693c8478c2b22af upstream. When the driver was updated to be endian neutral (8e9c7716c) 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 <richard@laptop.org> Signed-off-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions