1MATRIX_KEYPAD_BUILD_(9) Input Subsystem MATRIX_KEYPAD_BUILD_(9)
2
3
4
6 matrix_keypad_build_keymap - convert platform keymap into matrix keymap
7
9 void
10 matrix_keypad_build_keymap(const struct matrix_keymap_data * keymap_data,
11 unsigned int row_shift,
12 unsigned short * keymap,
13 unsigned long * keybit);
14
16 keymap_data
17 keymap supplied by the platform code
18
19 row_shift
20 number of bits to shift row value by to advance to the next line in
21 the keymap
22
23 keymap
24 expanded version of keymap that is suitable for use by matrix
25 keyboad driver
26
27 keybit
28 pointer to bitmap of keys supported by input device
29
31 This function converts platform keymap (encoded with KEY macro) into an
32 array of keycodes that is suitable for using in a standard matrix
33 keyboard driver that uses row and col as indices.
34
36Kernel Hackers Manual 2.6. November 2011 MATRIX_KEYPAD_BUILD_(9)