]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42792956609bcf4f2df047a8abe69feb4dabb14b
tree256d2a9bbb1c670c6802392ef35f6a045ef9ad60
parent39d0621eae661d211bf3f6f360a92ca6f8dcd62d
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]