From: Frank Praznik Date: Sat, 15 Feb 2014 18:35:42 +0000 (-0500) Subject: HID: sony: Correct Sixaxis battery reporting X-Git-Tag: v3.15-rc1~114^2~1^3~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a43e94a38b91e30f36e8c9ef91bf7bd93061a3a1;p=pandora-kernel.git HID: sony: Correct Sixaxis battery reporting The battery_charging and cable_state flags were backwards on the Sixaxis. The low bit of report byte 30 is 0 when charging and 1 when not. Bit 5 of byte 31 is 0 when a USB cable is connected and 1 when not. Signed-off-by: Frank Praznik Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed