1STRUCT MATRIX_KEYPAD(9) Input Subsystem STRUCT MATRIX_KEYPAD(9)
2
3
4
6 struct_matrix_keypad_platform_data - platform-dependent keypad data
7
9 struct matrix_keypad_platform_data {
10 const struct matrix_keymap_data * keymap_data;
11 const unsigned int * row_gpios;
12 const unsigned int * col_gpios;
13 unsigned int num_row_gpios;
14 unsigned int num_col_gpios;
15 unsigned int col_scan_delay_us;
16 unsigned int debounce_ms;
17 bool active_low;
18 bool wakeup;
19 bool no_autorepeat;
20 };
21
23 keymap_data
24 pointer to matrix_keymap_data
25
26 row_gpios
27 pointer to array of gpio numbers representing rows
28
29 col_gpios
30 pointer to array of gpio numbers reporesenting colums
31
32 num_row_gpios
33 actual number of row gpios used by device
34
35 num_col_gpios
36 actual number of col gpios used by device
37
38 col_scan_delay_us
39 delay, measured in microseconds, that is needed before we can
40 keypad after activating column gpio
41
42 debounce_ms
43 debounce interval in milliseconds
44
45 active_low
46 gpio polarity
47
48 wakeup
49 controls whether the device should be set up as wakeup source
50
51 no_autorepeat
52 disable key autorepeat
53
55 This structure represents platform-specific data that use used by
56 matrix_keypad driver to perform proper initialization.
57
59Kernel Hackers Manual 2.6. November 2011 STRUCT MATRIX_KEYPAD(9)