Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: omap4-keypad - move platform_data to <linux/platform_data>

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>

authored by

Felipe Balbi and committed by
Dmitry Torokhov
0f1142a5 04391660

+16 -11
+1
arch/arm/mach-omap2/board-4430sdp.c
··· 25 25 #include <linux/regulator/fixed.h> 26 26 #include <linux/leds.h> 27 27 #include <linux/leds_pwm.h> 28 + #include <linux/platform_data/omap4-keypad.h> 28 29 29 30 #include <mach/hardware.h> 30 31 #include <asm/hardware/gic.h>
+1
arch/arm/mach-omap2/devices.c
··· 17 17 #include <linux/err.h> 18 18 #include <linux/slab.h> 19 19 #include <linux/of.h> 20 + #include <linux/platform_data/omap4-keypad.h> 20 21 21 22 #include <mach/hardware.h> 22 23 #include <mach/irqs.h>
-9
arch/arm/plat-omap/include/plat/omap4-keypad.h
··· 1 1 #ifndef ARCH_ARM_PLAT_OMAP4_KEYPAD_H 2 2 #define ARCH_ARM_PLAT_OMAP4_KEYPAD_H 3 3 4 - #include <linux/input/matrix_keypad.h> 5 - 6 - struct omap4_keypad_platform_data { 7 - const struct matrix_keymap_data *keymap_data; 8 - 9 - u8 rows; 10 - u8 cols; 11 - }; 12 - 13 4 extern int omap4_keyboard_init(struct omap4_keypad_platform_data *, 14 5 struct omap_board_data *); 15 6 #endif
-1
drivers/input/keyboard/Kconfig
··· 513 513 514 514 config KEYBOARD_OMAP4 515 515 tristate "TI OMAP4 keypad support" 516 - depends on ARCH_OMAP4 517 516 help 518 517 Say Y here if you want to use the OMAP4 keypad. 519 518
+1 -1
drivers/input/keyboard/omap4-keypad.c
··· 31 31 #include <linux/slab.h> 32 32 #include <linux/pm_runtime.h> 33 33 34 - #include <plat/omap4-keypad.h> 34 + #include <linux/platform_data/omap4-keypad.h> 35 35 36 36 /* OMAP4 registers */ 37 37 #define OMAP4_KBD_REVISION 0x00
+13
include/linux/platform_data/omap4-keypad.h
··· 1 + #ifndef __LINUX_INPUT_OMAP4_KEYPAD_H 2 + #define __LINUX_INPUT_OMAP4_KEYPAD_H 3 + 4 + #include <linux/input/matrix_keypad.h> 5 + 6 + struct omap4_keypad_platform_data { 7 + const struct matrix_keymap_data *keymap_data; 8 + 9 + u8 rows; 10 + u8 cols; 11 + }; 12 + 13 + #endif /* __LINUX_INPUT_OMAP4_KEYPAD_H */