diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/hid/hid-magicmouse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c index f0fbd7bd239e..2ab71758e2e2 100644 --- a/drivers/hid/hid-magicmouse.c +++ b/drivers/hid/hid-magicmouse.c | |||
| @@ -405,6 +405,13 @@ static void magicmouse_setup_input(struct input_dev *input, struct hid_device *h | |||
| 405 | __set_bit(REL_HWHEEL, input->relbit); | 405 | __set_bit(REL_HWHEEL, input->relbit); |
| 406 | } | 406 | } |
| 407 | } else { /* USB_DEVICE_ID_APPLE_MAGICTRACKPAD */ | 407 | } else { /* USB_DEVICE_ID_APPLE_MAGICTRACKPAD */ |
| 408 | /* input->keybit is initialized with incorrect button info | ||
| 409 | * for Magic Trackpad. There really is only one physical | ||
| 410 | * button (BTN_LEFT == BTN_MOUSE). Make sure we don't | ||
| 411 | * advertise buttons that don't exist... | ||
| 412 | */ | ||
| 413 | __clear_bit(BTN_RIGHT, input->keybit); | ||
| 414 | __clear_bit(BTN_MIDDLE, input->keybit); | ||
| 408 | __set_bit(BTN_MOUSE, input->keybit); | 415 | __set_bit(BTN_MOUSE, input->keybit); |
| 409 | __set_bit(BTN_TOOL_FINGER, input->keybit); | 416 | __set_bit(BTN_TOOL_FINGER, input->keybit); |
| 410 | __set_bit(BTN_TOOL_DOUBLETAP, input->keybit); | 417 | __set_bit(BTN_TOOL_DOUBLETAP, input->keybit); |
