Commit 86809173 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: matrix-keymap - fix building keymaps

Keymaps used by drivers based on matrix-keymap facilities are arrays of
unsigned shorts, not chars. Treating them otherwise produces corrupted
keymaps.
Reported-by: default avatarSourav Poddar <sourav.poddar@ti.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 6123f119
...@@ -29,7 +29,7 @@ static bool matrix_keypad_map_key(struct input_dev *input_dev, ...@@ -29,7 +29,7 @@ static bool matrix_keypad_map_key(struct input_dev *input_dev,
unsigned int rows, unsigned int cols, unsigned int rows, unsigned int cols,
unsigned int row_shift, unsigned int key) unsigned int row_shift, unsigned int key)
{ {
unsigned char *keymap = input_dev->keycode; unsigned short *keymap = input_dev->keycode;
unsigned int row = KEY_ROW(key); unsigned int row = KEY_ROW(key);
unsigned int col = KEY_COL(key); unsigned int col = KEY_COL(key);
unsigned short code = KEY_VAL(key); unsigned short code = KEY_VAL(key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment