diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2008-01-31 00:58:52 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-01-31 00:58:52 -0500 |
commit | d7416f9eaa5427f47648973aac3a65e7a0eeda04 (patch) | |
tree | d284d127b32296b07bc35653c030573af4e603e4 /include | |
parent | 1814db69698479eec2c000a43c83b5f263f6fbb6 (diff) |
Input: pxa27x_keypad - introduce pxa27x_keypad_config()
Introduce pxa27x_keypad_config() for keypad registers configuration
and remove the reg_kpc, reg_kprec from platform data structure
so that configurations of keypad registers can be centralized to a
single function.
It can also be re-used when resuming.
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-pxa/pxa27x_keypad.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/asm-arm/arch-pxa/pxa27x_keypad.h b/include/asm-arm/arch-pxa/pxa27x_keypad.h index 1b1bf9fe6d81..23f4ebc4102d 100644 --- a/include/asm-arm/arch-pxa/pxa27x_keypad.h +++ b/include/asm-arm/arch-pxa/pxa27x_keypad.h | |||
@@ -13,11 +13,6 @@ struct pxa27x_keypad_platform_data { | |||
13 | unsigned int matrix_key_cols; | 13 | unsigned int matrix_key_cols; |
14 | unsigned int *matrix_key_map; | 14 | unsigned int *matrix_key_map; |
15 | int matrix_key_map_size; | 15 | int matrix_key_map_size; |
16 | |||
17 | #ifdef CONFIG_PM | ||
18 | u32 reg_kpc; | ||
19 | u32 reg_kprec; | ||
20 | #endif | ||
21 | }; | 16 | }; |
22 | 17 | ||
23 | #define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val)) | 18 | #define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val)) |