aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/synaptics_usb.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-09-08 17:44:05 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-09-08 17:58:12 -0400
commit01d4cd5c44ad471b75de4b0a235765881f6cde45 (patch)
tree9f6a9e97a7743d6265f849f3cbd6a7f01aa668ca /drivers/input/mouse/synaptics_usb.c
parent7611392fe8ff95ecae528b01a815ae3d72ca6b95 (diff)
Input: add missing POINTER / DIRECT properties to a bunch of drivers
I've not done a full audit of all mouse drivers, I noticed these ones were missing the POINTER property while working on the POINTING_STICK property. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/synaptics_usb.c')
-rw-r--r--drivers/input/mouse/synaptics_usb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/input/mouse/synaptics_usb.c b/drivers/input/mouse/synaptics_usb.c
index db3973d78207..6bcc0189c1c9 100644
--- a/drivers/input/mouse/synaptics_usb.c
+++ b/drivers/input/mouse/synaptics_usb.c
@@ -402,6 +402,11 @@ static int synusb_probe(struct usb_interface *intf,
402 __set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit); 402 __set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit);
403 } 403 }
404 404
405 if (synusb->flags & SYNUSB_TOUCHSCREEN)
406 __set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
407 else
408 __set_bit(INPUT_PROP_POINTER, input_dev->propbit);
409
405 __set_bit(BTN_LEFT, input_dev->keybit); 410 __set_bit(BTN_LEFT, input_dev->keybit);
406 __set_bit(BTN_RIGHT, input_dev->keybit); 411 __set_bit(BTN_RIGHT, input_dev->keybit);
407 __set_bit(BTN_MIDDLE, input_dev->keybit); 412 __set_bit(BTN_MIDDLE, input_dev->keybit);