From 14813f19e36ba313fadaa8cf4716c1b8c1564cde Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 27 Sep 2012 15:18:43 +0000 Subject: [PATCH] input: Add debugging for key matrix key codes 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 --- drivers/input/key_matrix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/key_matrix.c b/drivers/input/key_matrix.c index 287bf0dcc9..946a186a1f 100644 --- 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; } -- 2.25.1