From: Harvey Harrison Date: Mon, 22 Sep 2008 21:53:50 +0000 (-0700) Subject: bq27x00_battery: use unaligned access helper X-Git-Tag: Release-2010-05/1~2^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=368d2769551dbc574b40650e335dcd0329dd841f;p=pandora-kernel.git bq27x00_battery: use unaligned access helper 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 Cc: Rodolfo Giometti Signed-off-by: Andrew Morton Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed