summaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-04-03 21:02:07 +0200
committerSebastian Reichel <sre@kernel.org>2014-04-26 01:48:46 +0200
commit0740bff6aba601012cb4402ed6cd61efdd2009f5 (patch)
tree2ed35bfc2c2165cd500c0bbeed57541883088d9c /include/linux/input.h
parentc0f2015a936dec73a919a0998f58c0a926685191 (diff)
downloadlinux-0740bff6aba601012cb4402ed6cd61efdd2009f5.tar.bz2
Input: add common DT binding for touchscreens
Add common DT binding documentation for touchscreen devices and implement input_parse_touchscreen_of_params, which parses the common properties and configures the input device accordingly. The method currently does not interpret the axis inversion properties, since there is no matching flag in the generic linux input device. Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r--include/linux/input.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 82ce323b9986..3dc3b1edc2af 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -531,4 +531,12 @@ int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file);
int input_ff_create_memless(struct input_dev *dev, void *data,
int (*play_effect)(struct input_dev *, void *, struct ff_effect *));
+#if defined(CONFIG_OF)
+void input_parse_touchscreen_of_params(struct input_dev *dev);
+#else
+static inline void input_parse_touchscreen_of_params(struct input_dev *dev) {
+ return;
+}
+#endif
+
#endif