HID: sony: Fix Sixaxis cable state detection
authorFrank Praznik <frank.praznik@oh.rr.com>
Sat, 15 Mar 2014 13:41:15 +0000 (09:41 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 Apr 2014 16:44:06 +0000 (18:44 +0200)
commit914c578391c7cf55d88e2a553208e7523d0ddf1a
tree487929d4522bb9de85996c3a077477c5101f03af
parentdccf2f65e68d2f5b5e86ae6cf9796cf558694953
HID: sony: Fix Sixaxis cable state detection

Byte 31 of the Sixaxis report can change depending on whether or not the
controller is rumbling.  Using bit 3 is the only reliable way to detect the
state of the cable regardless of rumble activity.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c