FROMLIST: 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>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
(am from https://patchwork.kernel.org/patch/10001107/)
BUG=b:65387815
TEST=`emerge-eve chromeos-kernel-4_4` and test with CL:*447952
CQ-DEPEND=CL:*465552
Change-Id: Id7ed4f3bd2067d162b2b5b09b1953d829d91c658
Reviewed-on: https://chromium-review.googlesource.com/651789
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
3 files changed