Set MAJOR capability to make the evdevmultitouch work with 2.0alpha master
authorAustin Zhang <austin.zhang@intel.com>
Tue, 31 Jul 2012 02:08:04 +0000 (10:08 +0800)
committerAustin Zhang <austin.zhang@intel.com>
Tue, 31 Jul 2012 02:08:04 +0000 (10:08 +0800)
this device

Set MAJOR capability so evdevmultitouch input driver can use it
as flag, then we can use the same input driver for supporting
multitouch.

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
drivers/hid/hid-multitouch.c
packaging/kernel-adaptation-pc.changes

index f1c909f..1a29361 100644 (file)
@@ -244,6 +244,8 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
                                td->last_slot_field = usage->hid;
                                td->last_field_index = field->index;
                        }
+                       set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field,
+                               cls->sn_width);
                        return 1;
                case HID_GD_Y:
                        if (quirks & MT_QUIRK_EGALAX_XYZ_FIXUP)
index 9df92e3..75f75a3 100644 (file)
@@ -1,3 +1,7 @@
+* Mon Jul 30 2012 Austin Zhang <austin.zhang@intel.com>
+- Set MAJOR capability to make the evdevmultitouch work with
+  this device
+
 * Mon Jun 25 2012 Anas Nashif <anas.nashif@intel.com> bb302bc
 - remove old header