diff options
author | Mike Turquette <mturquette@linaro.org> | 2014-09-26 16:09:39 -0700 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-09-26 16:09:39 -0700 |
commit | b6b2fe5b6e956c8217a7584472a3ac5c068b61d4 (patch) | |
tree | 899d38684e674a05fc3e4ae2885529b916583323 /drivers/input/mouse/synaptics_usb.c | |
parent | b52f4914f3be3ff50e7308e3ce03a2ce71195ecc (diff) | |
parent | b9e742c3164344fece3615aca42ec51b41753908 (diff) | |
download | op-kernel-dev-b6b2fe5b6e956c8217a7584472a3ac5c068b61d4.zip op-kernel-dev-b6b2fe5b6e956c8217a7584472a3ac5c068b61d4.tar.gz |
Merge tag 'tegra-clk-3.18' of git://nv-tegra.nvidia.com/user/pdeschrijver/linux into clk-next
Tegra clk updates for 3.18
Diffstat (limited to 'drivers/input/mouse/synaptics_usb.c')
-rw-r--r-- | drivers/input/mouse/synaptics_usb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/mouse/synaptics_usb.c b/drivers/input/mouse/synaptics_usb.c index e122bda..6bcc018 100644 --- a/drivers/input/mouse/synaptics_usb.c +++ b/drivers/input/mouse/synaptics_usb.c @@ -387,6 +387,7 @@ static int synusb_probe(struct usb_interface *intf, __set_bit(EV_REL, input_dev->evbit); __set_bit(REL_X, input_dev->relbit); __set_bit(REL_Y, input_dev->relbit); + __set_bit(INPUT_PROP_POINTING_STICK, input_dev->propbit); input_set_abs_params(input_dev, ABS_PRESSURE, 0, 127, 0, 0); } else { input_set_abs_params(input_dev, ABS_X, @@ -401,6 +402,11 @@ static int synusb_probe(struct usb_interface *intf, __set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit); } + if (synusb->flags & SYNUSB_TOUCHSCREEN) + __set_bit(INPUT_PROP_DIRECT, input_dev->propbit); + else + __set_bit(INPUT_PROP_POINTER, input_dev->propbit); + __set_bit(BTN_LEFT, input_dev->keybit); __set_bit(BTN_RIGHT, input_dev->keybit); __set_bit(BTN_MIDDLE, input_dev->keybit); |