Input: of_touchscreen - add support for inverted / swapped axes
authorHans de Goede <hdegoede@redhat.com>
Fri, 15 Jul 2016 21:05:29 +0000 (14:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 15 Jul 2016 21:50:53 +0000 (14:50 -0700)
commited7c9870c9bc6ca50dc0d271a301410bc894f4b9
tree06501c64473ffba176cc2746a7ea76e0cbf1afe3
parent345ded8ef489a888f6921c999f872848c96b5af8
Input: of_touchscreen - add support for inverted / swapped axes

Extend touchscreen_parse_properties() with support for the
touchscreen-inverted-x/y and touchscreen-swapped-x-y properties and
add touchscreen_set_mt_pos() and touchscreen_report_pos() helper
functions for storing coordinates into a input_mt_pos struct, or
directly reporting them, taking these properties into account.

This commit also modifies the existing callers of
touchscreen_parse_properties() to pass in NULL for the new third
argument, keeping the existing behavior.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ad7879.c
drivers/input/touchscreen/cyttsp_core.c
drivers/input/touchscreen/edt-ft5x06.c
drivers/input/touchscreen/of_touchscreen.c
drivers/input/touchscreen/pixcir_i2c_ts.c
drivers/input/touchscreen/tsc200x-core.c
include/linux/input/touchscreen.h