aboutsummaryrefslogtreecommitdiff
path: root/kernel/gcov/gcc_3_4.c
diff options
context:
space:
mode:
authorRichard A. Smith <[email protected]>2010-09-25 19:19:26 +0100
committerAnton Vorontsov <[email protected]>2010-09-28 15:14:31 +0400
commit7cfbb29466633e6ecdc14f76a693c8478c2b22af (patch)
tree504887ee7ac3b554bbb7bcbaf04ff62eef9c57bb /kernel/gcov/gcc_3_4.c
parentf6127b8645207b4cb43e7456214c6add7c37cdc1 (diff)
olpc_battery: Fix endian neutral breakage for s16 values
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 <[email protected]> Signed-off-by: Daniel Drake <[email protected]> Cc: <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'kernel/gcov/gcc_3_4.c')
0 files changed, 0 insertions, 0 deletions