Input: mms114 - drop platform data and use generic APIs
authorSimon Shields <simon@lineageos.org>
Tue, 23 Jan 2018 01:45:09 +0000 (17:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 26 Jan 2018 19:27:23 +0000 (11:27 -0800)
commit5b0d0033f3f3a3d09178ef0dcdd0d4e1a08666b8
tree256d2a9bbb1c670c6802392ef35f6a045ef9ad60
parent477baf7e9a45538f984216acba371b8bd190d4f3
Input: mms114 - drop platform data and use generic APIs

The MMS114 platform data has no in-tree users, so drop it.

Switch to using the standard touchscreen properties via
touchscreen_parse_properties(), and move the old DT parsing code
to use device_property_*() APIs.

Finally, use touchscreen_report_pos to report x/y coordinates
and drop the custom x/y inversion code.

Signed-off-by: Simon Shields <simon@lineageos.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
Tested-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/mms114.txt
drivers/input/touchscreen/mms114.c
include/linux/platform_data/mms114.h [deleted file]