projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71dc6bc
)
input: Add debugging for key matrix key codes
author
Simon Glass
<sjg@chromium.org>
Thu, 27 Sep 2012 15:18:43 +0000
(15:18 +0000)
committer
Tom Rini
<trini@ti.com>
Mon, 15 Oct 2012 18:54:04 +0000
(11:54 -0700)
These are read from the fdt - add a debug feature to display the mapping
on start-up.
See that we get debug output listing the keycodes
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/input/key_matrix.c
patch
|
blob
|
history
diff --git
a/drivers/input/key_matrix.c
b/drivers/input/key_matrix.c
index 287bf0dcc9ca15a1095bbed05a31267b4c875a4f..946a186a1ffaf2ad511cba5e0749efc53ddf8e16 100644
(file)
--- a/
drivers/input/key_matrix.c
+++ b/
drivers/input/key_matrix.c
@@
-145,6
+145,8
@@
static uchar *create_keymap(struct key_matrix *config, u32 *data, int len,
key_code = tmp & 0xffff;
entry = row * config->num_cols + col;
map[entry] = key_code;
+ debug(" map %d, %d: pos=%d, keycode=%d\n", row, col,
+ entry, key_code);
if (pos && map_keycode == key_code)
*pos = entry;
}