aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-05-10 22:37:15 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-05-10 22:39:43 -0700
commitb45c8f35a7fec17bdd159a7815203b6137c00ab9 (patch)
treec6fc8efe76ff2b382e8290d6df59129200032a5d /include/linux/input
parent1932811f426fee71b7ece67e70aeba7e1b0ebb6d (diff)
downloadkernel_goldelico_gta04-b45c8f35a7fec17bdd159a7815203b6137c00ab9.zip
kernel_goldelico_gta04-b45c8f35a7fec17bdd159a7815203b6137c00ab9.tar.gz
kernel_goldelico_gta04-b45c8f35a7fec17bdd159a7815203b6137c00ab9.tar.bz2
Input: matrix-keymap - wire up device tree support
When platform keymap is not supplied to matrix_keypad_build_keymap() and device tree support is enabled, try locating specified property and load keymap from it. If property name is not defined, try using "linux,keymap". Based on earlier patch by Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input')
-rw-r--r--include/linux/input/matrix_keypad.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/input/matrix_keypad.h b/include/linux/input/matrix_keypad.h
index e8fe08e..5f3aa6b 100644
--- a/include/linux/input/matrix_keypad.h
+++ b/include/linux/input/matrix_keypad.h
@@ -81,22 +81,4 @@ int matrix_keypad_build_keymap(const struct matrix_keymap_data *keymap_data,
unsigned short *keymap,
struct input_dev *input_dev);
-#ifdef CONFIG_OF
-struct matrix_keymap_data *
-matrix_keyboard_of_fill_keymap(struct device_node *np, const char *propname);
-
-void matrix_keyboard_of_free_keymap(const struct matrix_keymap_data *kd);
-#else
-static inline struct matrix_keymap_data *
-matrix_keyboard_of_fill_keymap(struct device_node *np, const char *propname)
-{
- return NULL;
-}
-
-static inline void
-matrix_keyboard_of_free_keymap(const struct matrix_keymap_data *kd)
-{
-}
-#endif
-
#endif /* _MATRIX_KEYPAD_H */