Message ID | 20200524235134.GA143513@dtor-ws |
---|---|
State | Accepted |
Commit | 6363d2065cd399cf9d6dc9d08c437f8658831100 |
Headers | show |
Series | HID: magicmouse: do not set up autorepeat | expand |
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c index 34138667f8af..21c0ea7459be 100644 --- a/drivers/hid/hid-magicmouse.c +++ b/drivers/hid/hid-magicmouse.c @@ -535,6 +535,12 @@ static int magicmouse_setup_input(struct input_dev *input, struct hid_device *hd __set_bit(MSC_RAW, input->mscbit); } + /* + * hit-input may mark device as using autorepeat, but neither + * the trackpad, nor the mouse actually want it. + */ + __clear_bit(EV_REP, input->evbit); + return 0; }