[Precise][PATCH 3/3] UBUNTU: SAUCE: Input: synapticss - Set buttonpad property for all clickpads

Chase Douglas chase.douglas at canonical.com
Fri Feb 24 23:05:51 UTC 2012


Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
 drivers/input/mouse/synaptics.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index a6dcd18..8eac3b7 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -1202,7 +1202,9 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
 		/* Clickpads report only left button */
 		__clear_bit(BTN_RIGHT, dev->keybit);
 		__clear_bit(BTN_MIDDLE, dev->keybit);
-	}
+	} else if (SYN_CAP_CLICKPAD2BTN(priv->ext_cap_0c) ||
+		   SYN_CAP_CLICKPAD2BTN2(priv->ext_cap_0c))
+		__set_bit(INPUT_PROP_BUTTONPAD, dev->propbit);
 }
 
 static void synaptics_disconnect(struct psmouse *psmouse)
-- 
1.7.9




More information about the kernel-team mailing list