diff options
author | Simon Shields <simon@lineageos.org> | 2018-01-22 17:45:09 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-01-26 11:27:23 -0800 |
commit | 5b0d0033f3f3a3d09178ef0dcdd0d4e1a08666b8 (patch) | |
tree | 256d2a9bbb1c670c6802392ef35f6a045ef9ad60 /include | |
parent | Input: mms114 - mark as direct input device (diff) | |
download | linux-dev-5b0d0033f3f3a3d09178ef0dcdd0d4e1a08666b8.tar.xz linux-dev-5b0d0033f3f3a3d09178ef0dcdd0d4e1a08666b8.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | include/linux/platform_data/mms114.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/platform_data/mms114.h b/include/linux/platform_data/mms114.h deleted file mode 100644 index 5722ebfb2738..000000000000 --- a/include/linux/platform_data/mms114.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2012 Samsung Electronics Co.Ltd - * Author: Joonyoung Shim <jy0922.shim@samsung.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundationr - */ - -#ifndef __LINUX_MMS114_H -#define __LINUX_MMS114_H - -struct mms114_platform_data { - unsigned int x_size; - unsigned int y_size; - unsigned int contact_threshold; - unsigned int moving_threshold; - bool x_invert; - bool y_invert; - - void (*cfg_pin)(bool); -}; - -#endif /* __LINUX_MMS114_H */ |