bq27x00_battery: use unaligned access helper
authorHarvey Harrison <harvey.harrison@gmail.com>
Mon, 22 Sep 2008 21:53:50 +0000 (14:53 -0700)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 12 Feb 2010 16:22:36 +0000 (18:22 +0200)
Remove hand-rolled get_unaligned_be16, this points to a possible bug as
bq27x00_read does another endian byteswap which sparse notices:

drivers/power/bq27x00_battery.c:81:14: warning: cast to restricted __be16
Which should probably be checked.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

No differences found