]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Report touch width/height/orientation for GENERIC devices
authorJason Gerecke <killertofu@gmail.com>
Tue, 21 Jul 2015 18:07:25 +0000 (11:07 -0700)
committerJiri Kosina <jkosina@suse.com>
Thu, 23 Jul 2015 12:02:44 +0000 (14:02 +0200)
commitf3e8d022efc0155d9bf4678ca1dd961930d857b6
tree52d950b20ffadb4c12a486b06eac5dfde1436223
parent9e40f21f85a1803eb948c852c7b2647304cf1089
HID: wacom: Report touch width/height/orientation for GENERIC devices

The HID_DG_WIDTH and HID_DG_HEIGHT usages report with width and height of
contacts. From this information, a crude determination of orientation is
also possible. This patch reports all three to userspace if a device
reports this usage.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_wac.c