]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Input: omap4-keypad - move platform_data to <linux/platform_data>
authorFelipe Balbi <balbi@ti.com>
Sat, 17 Mar 2012 05:47:48 +0000 (22:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 17 Mar 2012 05:49:46 +0000 (22:49 -0700)
This patch allows us to drop the OMAP dependency from the OMAP4 keypad
driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/devices.c
arch/arm/plat-omap/include/plat/omap4-keypad.h
drivers/input/keyboard/Kconfig
drivers/input/keyboard/omap4-keypad.c
include/linux/platform_data/omap4-keypad.h [new file with mode: 0644]

index 4e9071589bfb60ac3bfb5a222eefcfebc700bd03..d16902c9ee5ac2604f61c2114a12640d7a3a884a 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/regulator/fixed.h>
 #include <linux/leds.h>
 #include <linux/leds_pwm.h>
+#include <linux/platform_data/omap4-keypad.h>
 
 #include <mach/hardware.h>
 #include <asm/hardware/gic.h>
index 283d11eae693115b42d2bbcca9176f019274960c..58e1d201732e89d6c8b8ea570ceeb6a856d3d91d 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/of.h>
+#include <linux/platform_data/omap4-keypad.h>
 
 #include <mach/hardware.h>
 #include <mach/irqs.h>
index 9fe6c8783236e755c5e48194c3185e8a2b357a06..8ad0a377a54b5c97a5bcff7653812f84c24755b9 100644 (file)
@@ -1,15 +1,6 @@
 #ifndef ARCH_ARM_PLAT_OMAP4_KEYPAD_H
 #define ARCH_ARM_PLAT_OMAP4_KEYPAD_H
 
-#include <linux/input/matrix_keypad.h>
-
-struct omap4_keypad_platform_data {
-       const struct matrix_keymap_data *keymap_data;
-
-       u8 rows;
-       u8 cols;
-};
-
 extern int omap4_keyboard_init(struct omap4_keypad_platform_data *,
                                struct omap_board_data *);
 #endif
index 3371954c979b074677fa4979857b73b2615751fc..f354813a13e8608868040355e3a1f4f19cf2b139 100644 (file)
@@ -513,7 +513,6 @@ config KEYBOARD_OMAP
 
 config KEYBOARD_OMAP4
        tristate "TI OMAP4 keypad support"
-       depends on ARCH_OMAP4
        help
          Say Y here if you want to use the OMAP4 keypad.
 
index d5c5d77f4b82afd1c9e3369007ae8330bcb5abbf..e809ac095a38c246cbf85ddd2311d91abec0536f 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/slab.h>
 #include <linux/pm_runtime.h>
 
-#include <plat/omap4-keypad.h>
+#include <linux/platform_data/omap4-keypad.h>
 
 /* OMAP4 registers */
 #define OMAP4_KBD_REVISION             0x00
diff --git a/include/linux/platform_data/omap4-keypad.h b/include/linux/platform_data/omap4-keypad.h
new file mode 100644 (file)
index 0000000..4eef5fb
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef __LINUX_INPUT_OMAP4_KEYPAD_H
+#define __LINUX_INPUT_OMAP4_KEYPAD_H
+
+#include <linux/input/matrix_keypad.h>
+
+struct omap4_keypad_platform_data {
+       const struct matrix_keymap_data *keymap_data;
+
+       u8 rows;
+       u8 cols;
+};
+
+#endif /* __LINUX_INPUT_OMAP4_KEYPAD_H */