diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-08 02:59:41 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-15 12:46:14 -0500 |
commit | 8d964a2872ea0914e00bc7798e68899e01715185 (patch) | |
tree | e55e7ed48bdf53637cb53d18d436bf0e4cecdab0 /arch/arm/plat-samsung | |
parent | 400bf2995be617474ebc4b2a0989f2b0a0e498cf (diff) |
Input: samsung-keypad - enable compiling on other platforms
There is nothing in keypad platform definitions that requires
the driver be complied on Samsung platform only, so let's move them
out of the platform subdirectory and relax the dependencies.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/keypad.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/arch/arm/plat-samsung/include/plat/keypad.h b/arch/arm/plat-samsung/include/plat/keypad.h index b59a6483cd8a..c81ace332a1e 100644 --- a/arch/arm/plat-samsung/include/plat/keypad.h +++ b/arch/arm/plat-samsung/include/plat/keypad.h | |||
@@ -13,32 +13,7 @@ | |||
13 | #ifndef __PLAT_SAMSUNG_KEYPAD_H | 13 | #ifndef __PLAT_SAMSUNG_KEYPAD_H |
14 | #define __PLAT_SAMSUNG_KEYPAD_H | 14 | #define __PLAT_SAMSUNG_KEYPAD_H |
15 | 15 | ||
16 | #include <linux/input/matrix_keypad.h> | 16 | #include <linux/input/samsung-keypad.h> |
17 | |||
18 | #define SAMSUNG_MAX_ROWS 8 | ||
19 | #define SAMSUNG_MAX_COLS 8 | ||
20 | |||
21 | /** | ||
22 | * struct samsung_keypad_platdata - Platform device data for Samsung Keypad. | ||
23 | * @keymap_data: pointer to &matrix_keymap_data. | ||
24 | * @rows: number of keypad row supported. | ||
25 | * @cols: number of keypad col supported. | ||
26 | * @no_autorepeat: disable key autorepeat. | ||
27 | * @wakeup: controls whether the device should be set up as wakeup source. | ||
28 | * @cfg_gpio: configure the GPIO. | ||
29 | * | ||
30 | * Initialisation data specific to either the machine or the platform | ||
31 | * for the device driver to use or call-back when configuring gpio. | ||
32 | */ | ||
33 | struct samsung_keypad_platdata { | ||
34 | const struct matrix_keymap_data *keymap_data; | ||
35 | unsigned int rows; | ||
36 | unsigned int cols; | ||
37 | bool no_autorepeat; | ||
38 | bool wakeup; | ||
39 | |||
40 | void (*cfg_gpio)(unsigned int rows, unsigned int cols); | ||
41 | }; | ||
42 | 17 | ||
43 | /** | 18 | /** |
44 | * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device. | 19 | * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device. |