summaryrefslogtreecommitdiff
path: root/common/keyboard_8042.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r--common/keyboard_8042.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index e561762843..124ac8adee 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -309,7 +309,7 @@ static enum ec_error_list matrix_callback(int8_t row, int8_t col,
if (row >= KEYBOARD_ROWS || col >= KEYBOARD_COLS)
return EC_ERROR_INVAL;
- make_code = scancode_set2[row][col];
+ make_code = scancode_set2[col][row];
#ifdef CONFIG_KEYBOARD_SCANCODE_CALLBACK
{
@@ -385,7 +385,7 @@ void keyboard_state_changed(int row, int col, int is_pressed)
enum ec_error_list ret;
#ifdef CONFIG_KEYBOARD_DEBUG
- char mylabel = keycap_label[row][col];
+ char mylabel = keycap_label[col][row];
if (mylabel & KEYCAP_LONG_LABEL_BIT)
CPRINTS("KB (%d,%d)=%d %s", row, col, is_pressed,