Let's switch form OF to device properties so that common parsing code could work not only on device tree but also on ACPI-based platforms.
Showing the changes to include/linux/input (1 of 6 files). Show all
Unified · Split
| @@ -9,15 +9,8 @@ · 8 unmodified lines | |||
| 9 | #ifndef _TOUCHSCREEN_H | 9 | #ifndef _TOUCHSCREEN_H |
| 10 | #define _TOUCHSCREEN_H | 10 | #define _TOUCHSCREEN_H |
| 11 | 11 | ||
| 12 | #include <linux/input.h> | 12 | struct input_dev; |
| 13 | 13 | ||
| 14 | #ifdef CONFIG_OF | 14 | void touchscreen_parse_properties(struct input_dev *dev, bool multitouch); |
| 15 | void touchscreen_parse_of_params(struct input_dev *dev, bool multitouch); | ||
| 16 | #else | ||
| 17 | static inline void touchscreen_parse_of_params(struct input_dev *dev, | ||
| 18 | bool multitouch) | ||
| 19 | { | ||
| 20 | } | ||
| 21 | #endif | ||
| 22 | 15 | ||
| 23 | #endif | 16 | #endif |