diff options
author | Richard A. Smith <richard@laptop.org> | 2010-09-25 20:19:26 +0200 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-09-28 13:14:31 +0200 |
commit | 7cfbb29466633e6ecdc14f76a693c8478c2b22af (patch) | |
tree | 504887ee7ac3b554bbb7bcbaf04ff62eef9c57bb /crypto/arc4.c | |
parent | ds2760_battery: Fix W1 and W1_SLAVE_DS2760 dependency (diff) | |
download | linux-7cfbb29466633e6ecdc14f76a693c8478c2b22af.tar.xz linux-7cfbb29466633e6ecdc14f76a693c8478c2b22af.zip |
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 <richard@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Cc: <stable@kernel.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions