History

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.

Sebastian Reichel committed 12 years ago

Commit b98abe51 parent 50525cb5 files · +99 −0Browse files

Showing the changes to include/linux/input (1 of 5 files). Show all

Unified · Split

include/linux/input/touchscreen.h+22−0
@@ -0,0 +1,22 @@
1+/*
2+ * Copyright (c) 2014 Sebastian Reichel <sre@kernel.org>
3+ *
4+ * This program is free software; you can redistribute it and/or modify it
5+ * under the terms of the GNU General Public License version 2 as published by
6+ * the Free Software Foundation.
7+ */
8+
9+#ifndef _TOUCHSCREEN_H
10+#define _TOUCHSCREEN_H
11+
12+#include <linux/input.h>
13+
14+#ifdef CONFIG_OF
15+void touchscreen_parse_of_params(struct input_dev *dev);
16+#else
17+static inline void touchscreen_parse_of_params(struct input_dev *dev)
18+{
19+}
20+#endif
21+
22+#endif