aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/synaptics.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-12-16 03:52:23 -0500
committerHenrik Rydberg <rydberg@euromail.se>2010-12-21 12:09:19 -0500
commitc14890a8e54977f895773d393d6a640d6d698fb8 (patch)
treef865c12eba520ec6db8f6cf0b640f867dbd3ffc5 /drivers/input/mouse/synaptics.c
parent22f075a8d8bb5a8d203392df809739c1817e578f (diff)
Input: synaptics - report clickpad property
With the new input property interface, it is possible to report the special quirks of a device using ioctl/sysfs. This patch sets up the device as a pointer, and reports the clickpad functionality via the INPUT_PROP_BUTTONPAD property. Acked-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'drivers/input/mouse/synaptics.c')
-rw-r--r--drivers/input/mouse/synaptics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index 2e300a460556..8997cbc69dcc 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -622,6 +622,8 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
622{ 622{
623 int i; 623 int i;
624 624
625 __set_bit(INPUT_PROP_POINTER, dev->propbit);
626
625 __set_bit(EV_ABS, dev->evbit); 627 __set_bit(EV_ABS, dev->evbit);
626 input_set_abs_params(dev, ABS_X, 628 input_set_abs_params(dev, ABS_X,
627 XMIN_NOMINAL, priv->x_max ?: XMAX_NOMINAL, 0, 0); 629 XMIN_NOMINAL, priv->x_max ?: XMAX_NOMINAL, 0, 0);
@@ -663,6 +665,7 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
663 input_abs_set_res(dev, ABS_Y, priv->y_res); 665 input_abs_set_res(dev, ABS_Y, priv->y_res);
664 666
665 if (SYN_CAP_CLICKPAD(priv->ext_cap_0c)) { 667 if (SYN_CAP_CLICKPAD(priv->ext_cap_0c)) {
668 __set_bit(INPUT_PROP_BUTTONPAD, dev->propbit);
666 /* Clickpads report only left button */ 669 /* Clickpads report only left button */
667 __clear_bit(BTN_RIGHT, dev->keybit); 670 __clear_bit(BTN_RIGHT, dev->keybit);
668 __clear_bit(BTN_MIDDLE, dev->keybit); 671 __clear_bit(BTN_MIDDLE, dev->keybit);