HID: magicmouse: Don't report REL_{X,Y} for Magic Trackpad
authorChase Douglas <chase.douglas@canonical.com>
Wed, 8 Dec 2010 23:08:04 +0000 (15:08 -0800)
committerJaikumar Ganesh <jaikumar@google.com>
Wed, 15 Jun 2011 18:04:26 +0000 (11:04 -0700)
commit457287905f43f5be9789214e1a25b514cd1d3e5a
tree617800c311fe7c7a26c2f009d6ce00694a7a9db3
parent13d3a0eb4e8d3cff9aa66f3640fb205d44358bc3
HID: magicmouse: Don't report REL_{X,Y} for Magic Trackpad

With the recent switch to having the hid layer handle standard axis
initialization, the Magic Trackpad now reports relative axes. This would
be fine in the normal mode, but the driver puts the device in multitouch
mode where no relative events are generated. Also, userspace software
depends on accurate axis information for device type detection. Thus,
ignoring the relative axes from the Magic Trackpad is best.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c