From ada70ece538107a62e1a32e2fc00f4c726120f29 Mon Sep 17 00:00:00 2001 From: Daniel Kurtz Date: Mon, 23 Apr 2012 15:26:40 +0800 Subject: [PATCH] CHROMIUM: Input: cyapa - set POINTER and BUTTONPAD props Signed-off-by: Daniel Kurtz BUG=chromium-os:27072 TEST=Use DISPLAY=:0 xinput list to find the ID for touchpad device 1) Dump touchpad_activity_log: DISPLAY=:0 xinput set-prop 9 "Logging Notify" 1 2) grep isButtonPad /var/log/touchpad_activity_log.txt => should show: "isButtonPad": true, Change-Id: I5327718761b968bf35fe81b7b83d6243c639bf94 Reviewed-on: https://gerrit.chromium.org/gerrit/20819 Reviewed-by: Andrew de los Reyes Reviewed-by: Benson Leung Commit-Ready: Daniel Kurtz Reviewed-by: Daniel Kurtz Tested-by: Daniel Kurtz --- drivers/input/mouse/cyapa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c index ab56e4a7d2b4..d9b9b875e74f 100644 --- a/drivers/input/mouse/cyapa.c +++ b/drivers/input/mouse/cyapa.c @@ -1600,6 +1600,9 @@ static int cyapa_create_input_dev(struct cyapa *cyapa) __set_bit(BTN_LEFT, input->keybit); + __set_bit(INPUT_PROP_POINTER, input->propbit); + __set_bit(INPUT_PROP_BUTTONPAD, input->propbit); + /* Register the device in input subsystem */ ret = input_register_device(input); if (ret) { -- 2.20.1