summaryrefslogtreecommitdiff
path: root/common/keyboard_test.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-03-21 13:28:11 -0700
committerChromeBot <chrome-bot@google.com>2013-03-22 11:24:29 -0700
commit10ac310605b32bf7fbd6fc83066e72e1e70a803c (patch)
treef7784c6416902032d6fd49164f9e8c1fbc94aa85 /common/keyboard_test.c
parent743c05f01f8f2b19dbf565bee645076fff75c42d (diff)
downloadchrome-ec-10ac310605b32bf7fbd6fc83066e72e1e70a803c.tar.gz
Move keyboard dimension and key constants to keyboard_config.h
These were previously duplicated between multiple keyboard_scan.c and board.c files, and there were a bunch of different constants #defined to be 13. BUG=chrome-os-partner:18360 BRANCH=none TEST=compile all boards; test keyboard on spring and link Change-Id: I91bf9d56d2a56ff25ff307ff10883ca87b6937e5 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/46165
Diffstat (limited to 'common/keyboard_test.c')
-rw-r--r--common/keyboard_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/keyboard_test.c b/common/keyboard_test.c
index 03d31fd63b..580d4745cf 100644
--- a/common/keyboard_test.c
+++ b/common/keyboard_test.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
+ * Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -78,7 +78,7 @@ uint8_t keyscan_seq_get_scan(int column, uint8_t scan)
int c;
scan = 0;
- for (c = 0; c < KB_OUTPUTS; c++)
+ for (c = 0; c < KEYBOARD_COLS; c++)
scan |= item->scan[c];
} else {
scan = item->scan[column];