aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-sony.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index b1aa6f00c827..31ba01a39e81 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -864,7 +864,7 @@ static void sixaxis_parse_report(struct sony_sc *sc, __u8 *rd, int size)
864 battery_capacity = sixaxis_battery_capacity[index]; 864 battery_capacity = sixaxis_battery_capacity[index];
865 battery_charging = 0; 865 battery_charging = 0;
866 } 866 }
867 cable_state = !((rd[31] >> 4) & 0x01); 867 cable_state = !(rd[31] & 0x04);
868 868
869 spin_lock_irqsave(&sc->lock, flags); 869 spin_lock_irqsave(&sc->lock, flags);
870 sc->cable_state = cable_state; 870 sc->cable_state = cable_state;