Input: ads7846 - add support for general touchscreen bindings
authorMarco Felsch <m.felsch@pengutronix.de>
Fri, 9 Aug 2019 14:40:00 +0000 (07:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Aug 2019 14:44:11 +0000 (07:44 -0700)
commita2f99330c50bb89fe2625d374fdf22f021163b55
tree650d7592d04cd1d108ebc9ad2d4d9a929e7ddf38
parentf0fbeaa82028eaa4e2481ab49534c2e1465c99ce
Input: ads7846 - add support for general touchscreen bindings

A few vendor specific bindings are now covered by common bindings.

Let the driver parse the common bindings to make use of common
inverting and swapping mechnism. Aslo make use of
touchscreen_report_pos() to ensure the correct inverting-swapping
order.

The vendor specific properties are used as default (backward
compatibility) and gets overwritten by common bindings.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/ads7846.txt
drivers/input/touchscreen/ads7846.c