summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2014-11-09 07:54:30 +0000
committerJiri Kosina <jkosina@suse.cz>2014-11-11 11:46:33 +0100
commitc87d92b30208826a656d3cd63e6c96c56cf516a4 (patch)
tree1d486afd1f5e91b6632d321bbdb5d9d2cc038e67 /drivers/hid
parent5556eb14b4cbf5dce840194ab591027322cbdb1f (diff)
downloadop-kernel-dev-c87d92b30208826a656d3cd63e6c96c56cf516a4.zip
op-kernel-dev-c87d92b30208826a656d3cd63e6c96c56cf516a4.tar.gz
HID: lenovo: Don't set EV_REP to avoid repeating mice buttons
On the USB keyboard, the VENDOR hotkeys share the same device as the mouse. Setting EV_REP also affects mouse buttons, so leave it off. The bluetooth keyboard still has autorepeating mouse buttons, as it only has one device and is set by the KEYBOARD pages. Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-lenovo.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c
index 4716f1e..4c55f4d 100644
--- a/drivers/hid/hid-lenovo.c
+++ b/drivers/hid/hid-lenovo.c
@@ -62,7 +62,6 @@ static int lenovo_input_mapping_cptkbd(struct hid_device *hdev,
/* HID_UP_LNVENDOR = USB, HID_UP_MSVENDOR = BT */
if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR ||
(usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) {
- set_bit(EV_REP, hi->input->evbit);
switch (usage->hid & HID_USAGE) {
case 0x00f1: /* Fn-F4: Mic mute */
map_key_clear(KEY_MICMUTE);
OpenPOWER on IntegriCloud