[PATCH] HID: sony: Correct Sixaxis battery reporting

2014-02-15 Thread Frank Praznik
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 --- drivers/hid/hid-sony.c | 4 ++-- 1 file changed, 2 inser

Re: [PATCH] HID: sony: Correct Sixaxis battery reporting

2014-02-17 Thread Jiri Kosina
On Sat, 15 Feb 2014, Frank Praznik wrote: > 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 Applied