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>
Showing
- drivers/input/touchscreen/ad7879.c 1 addition, 1 deletiondrivers/input/touchscreen/ad7879.c
- drivers/input/touchscreen/cyttsp_core.c 1 addition, 1 deletiondrivers/input/touchscreen/cyttsp_core.c
- drivers/input/touchscreen/edt-ft5x06.c 1 addition, 1 deletiondrivers/input/touchscreen/edt-ft5x06.c
- drivers/input/touchscreen/of_touchscreen.c 80 additions, 1 deletiondrivers/input/touchscreen/of_touchscreen.c
- drivers/input/touchscreen/pixcir_i2c_ts.c 1 addition, 1 deletiondrivers/input/touchscreen/pixcir_i2c_ts.c
- drivers/input/touchscreen/tsc200x-core.c 1 addition, 1 deletiondrivers/input/touchscreen/tsc200x-core.c
- include/linux/input/touchscreen.h 20 additions, 1 deletioninclude/linux/input/touchscreen.h
Loading
Please register or sign in to comment