From: Richard A. Smith Date: Sat, 25 Sep 2010 18:19:26 +0000 (+0100) Subject: olpc_battery: Fix endian neutral breakage for s16 values X-Git-Tag: v2.6.37-rc1~107^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cfbb29466633e6ecdc14f76a693c8478c2b22af;p=pandora-kernel.git 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 Signed-off-by: Daniel Drake Cc: Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed