]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Correct Sixaxis battery reporting
authorFrank Praznik <frank.praznik@oh.rr.com>
Sat, 15 Feb 2014 18:35:42 +0000 (13:35 -0500)
committerJiri Kosina <jkosina@suse.cz>
Mon, 17 Feb 2014 22:17:36 +0000 (23:17 +0100)
commit60072a40a0497ef55b5a827ae03a51747b4977cf
tree4f6e7bdec56d1d4e076b825b8ac6fcd0e105c602
parentd7360d15c2eb11d358e5579cebec03e9dc4cc09e
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 <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c