diff options
Diffstat (limited to 'include/linux/input')
| -rw-r--r-- | include/linux/input/matrix_keypad.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/input/matrix_keypad.h b/include/linux/input/matrix_keypad.h index fe7c4b9ae270..6c07ced0af81 100644 --- a/include/linux/input/matrix_keypad.h +++ b/include/linux/input/matrix_keypad.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/input.h> | 5 | #include <linux/input.h> |
| 6 | #include <linux/of.h> | ||
| 6 | 7 | ||
| 7 | #define MATRIX_MAX_ROWS 32 | 8 | #define MATRIX_MAX_ROWS 32 |
| 8 | #define MATRIX_MAX_COLS 32 | 9 | #define MATRIX_MAX_COLS 32 |
| @@ -106,4 +107,22 @@ matrix_keypad_build_keymap(const struct matrix_keymap_data *keymap_data, | |||
| 106 | __clear_bit(KEY_RESERVED, keybit); | 107 | __clear_bit(KEY_RESERVED, keybit); |
| 107 | } | 108 | } |
| 108 | 109 | ||
| 110 | #ifdef CONFIG_INPUT_OF_MATRIX_KEYMAP | ||
| 111 | struct matrix_keymap_data * | ||
| 112 | matrix_keyboard_of_fill_keymap(struct device_node *np, const char *propname); | ||
| 113 | |||
| 114 | void matrix_keyboard_of_free_keymap(const struct matrix_keymap_data *kd); | ||
| 115 | #else | ||
| 116 | static inline struct matrix_keymap_data * | ||
| 117 | matrix_keyboard_of_fill_keymap(struct device_node *np, const char *propname) | ||
| 118 | { | ||
| 119 | return NULL; | ||
| 120 | } | ||
| 121 | |||
| 122 | static inline void | ||
| 123 | matrix_keyboard_of_free_keymap(const struct matrix_keymap_data *kd) | ||
| 124 | { | ||
| 125 | } | ||
| 126 | #endif | ||
| 127 | |||
| 109 | #endif /* _MATRIX_KEYPAD_H */ | 128 | #endif /* _MATRIX_KEYPAD_H */ |
