Patchwork [Precise,1/3] UBUNTU: SAUCE: (drop after 3.3) HID: hid-magicmouse: Add pointer and buttonpad properties for Magic Trackpad

login
register
mail settings
Submitter Chase Douglas
Date Feb. 24, 2012, 11:05 p.m.
Message ID <1330124751-31888-2-git-send-email-chase.douglas@canonical.com>
Download mbox | patch
Permalink /patch/142995/
State New
Headers show

Comments

Chase Douglas - Feb. 24, 2012, 11:05 p.m.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

(cherry picked from commit 503f7d53b368c8e4e13a7756220c0536fcf1a034 from
Jiri Kosina's HID for-next branch)
---
 drivers/hid/hid-magicmouse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
index 2ab7175..7cf3ffe 100644
--- a/drivers/hid/hid-magicmouse.c
+++ b/drivers/hid/hid-magicmouse.c
@@ -418,6 +418,8 @@  static void magicmouse_setup_input(struct input_dev *input, struct hid_device *h
 		__set_bit(BTN_TOOL_TRIPLETAP, input->keybit);
 		__set_bit(BTN_TOOL_QUADTAP, input->keybit);
 		__set_bit(BTN_TOUCH, input->keybit);
+		__set_bit(INPUT_PROP_POINTER, input->propbit);
+		__set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
 	}
 
 	if (report_touches) {