]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-multitouch: support fine-grain orientation reporting
authorWei-Ning Huang <wnhuang@chromium.org>
Thu, 12 Oct 2017 06:21:43 +0000 (14:21 +0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 1 Dec 2017 09:01:01 +0000 (10:01 +0100)
commitb6814d8f6104aeb4bb0a70d57198bc787507bb9e
treeef9e7d02143daab51abe1d03fefd41238812fb6a
parentfde1fb7ef430ff099b5e8d10133ab0c1ad24b075
HID: hid-multitouch: support fine-grain orientation reporting

The current hid-multitouch driver only allow the report of two
orientations, vertical and horizontal. We use the Azimuth orientation
usage 0x3F under the Digitizer usage page to report orientation if the
device supports it.

Changelog:
  v1 -> v2:
   - Fix commit message.
   - Remove resolution reporting for ABS_MT_ORIENTATION.
  v2 -> v3:
   - Fix commit message.
  v3 -> v4:
   - Fix ABS_MT_ORIENTATION ABS param range.
   - Don't set ABS_MT_ORIENTATION in ABS_DG_HEIGHT when it is already
     set by ABS_DG_AZIMUTH.
  v4 -> v5:
   - Improve multi-touch-protocol.rst documentation.

Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>
Signed-off-by: Wei-Ning Huang <wnhuang@google.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Henrik Rydberg <rydberg@bitmath.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/input/multi-touch-protocol.rst
drivers/hid/hid-multitouch.c
include/linux/hid.h