summaryrefslogtreecommitdiff
path: root/board/eve
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-10-16 12:37:28 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-10-19 12:19:32 -0700
commit9fda2eea0861911537922ce3e45b118297f5030d (patch)
treec3d6822f5088ee561a2b0414300e3efb755e33d6 /board/eve
parent59dc8df73fa71f3064fd225cf89fed65bf1b25a9 (diff)
downloadchrome-ec-9fda2eea0861911537922ce3e45b118297f5030d.tar.gz
Keyboard: switch column and row of scancode table
This patch switches column and row of scancode_set2. That is, scancode_set2[ROWS][COLS] = {0x00, 0x01, 0x02, ..., 0x10, 0x11, ..., 0x20, ..., becomes scancode_set2[COLS][ROWS] = {0x00, 0x10, 0x20, ..., 0x01, 0x11, ..., 0x02, ..., This will allow us to extend the table for a keypad without losing too much readability. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> BUG=b:117126568 BRANCH=none TEST=Verify keyboard functionality on Sona. Change-Id: I49a7c0796d5c91989f1d3686c80743fb4bcd5ba7 Reviewed-on: https://chromium-review.googlesource.com/1285291 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/eve')
-rw-r--r--board/eve/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/eve/board.c b/board/eve/board.c
index df95551535..46260c0672 100644
--- a/board/eve/board.c
+++ b/board/eve/board.c
@@ -487,9 +487,9 @@ static void board_init(void)
if (board_get_version() == 4) {
/* Set F13 to new defined key on EVT */
CPRINTS("Overriding F13 scan code");
- scancode_set2[3][9] = 0xe007;
+ scancode_set2[9][3] = 0xe007;
#ifdef CONFIG_KEYBOARD_DEBUG
- keycap_label[3][9] = KLLI_F13;
+ keycap_label[9][3] = KLLI_F13;
#endif
}
#endif