mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Input: pxa27x_keypad - allow modifying keymap from userspace
Tested-by: Mike Rapoport <[email protected]> Acked-by: Eric Miao <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
7cac9cd935
commit
bd96f37895
2 changed files with 94 additions and 83 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#define MAX_MATRIX_KEY_ROWS (8)
|
||||
#define MAX_MATRIX_KEY_COLS (8)
|
||||
#define MATRIX_ROW_SHIFT (3)
|
||||
#define MAX_DIRECT_KEY_NUM (8)
|
||||
|
||||
/* pxa3xx keypad platform specific parameters
|
||||
*
|
||||
|
|
@ -34,7 +36,7 @@ struct pxa27x_keypad_platform_data {
|
|||
|
||||
/* direct keys */
|
||||
int direct_key_num;
|
||||
unsigned int direct_key_map[8];
|
||||
unsigned int direct_key_map[MAX_DIRECT_KEY_NUM];
|
||||
|
||||
/* rotary encoders 0 */
|
||||
int enable_rotary0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue