From: Grazvydas Ignotas Date: Sat, 14 Jan 2012 20:50:49 +0000 (+0200) Subject: bq27x00_battery: Fix flag register read X-Git-Tag: sz_beta3~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=436a34a1e5d055ee42cb59a33ad54ab3591dd380;p=pandora-kernel.git bq27x00_battery: Fix flag register read When reading flags, bq27x00_read() argument is inverted and causes reads 2 of bytes for bq27200 and 1 byte for bq27500, while their register sizes are 1 and 2 bytes respectively. This causes bq27500 upper flag bits always to be returned as 0, causing full charge state to never be reported correctly, so fix it. Cc: Lars-Peter Clausen Signed-off-by: Grazvydas Ignotas Acked-by: Pali Rohár Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed