diff options
author | Frank Praznik | 2014-02-15 19:35:42 +0100 |
---|---|---|
committer | Jiri Kosina | 2014-02-17 23:17:36 +0100 |
commit | a43e94a38b91e30f36e8c9ef91bf7bd93061a3a1 (patch) | |
tree | 4f6e7bdec56d1d4e076b825b8ac6fcd0e105c602 /drivers/hid/hid-steelseries.c | |
parent | HID: sony: Add conditionals to enable all features in Bluetooth mode (diff) | |
download | kernel-qcow2-linux-a43e94a38b91e30f36e8c9ef91bf7bd93061a3a1.tar.gz kernel-qcow2-linux-a43e94a38b91e30f36e8c9ef91bf7bd93061a3a1.tar.xz kernel-qcow2-linux-a43e94a38b91e30f36e8c9ef91bf7bd93061a3a1.zip |
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>
Diffstat (limited to 'drivers/hid/hid-steelseries.c')
0 files changed, 0 insertions, 0 deletions