summaryrefslogtreecommitdiff
path: root/include/keyboard_raw.h
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 /include/keyboard_raw.h
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 'include/keyboard_raw.h')
-rw-r--r--include/keyboard_raw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/keyboard_raw.h b/include/keyboard_raw.h
index 6432335a52..339b5344cb 100644
--- a/include/keyboard_raw.h
+++ b/include/keyboard_raw.h
@@ -14,11 +14,11 @@
#include "common.h"
#include "gpio.h"
-/* used for select_column() */
+/* Column values for keyboard_raw_drive_column() */
enum keyboard_column_index {
KEYBOARD_COLUMN_ALL = -2, /* Drive all columns */
KEYBOARD_COLUMN_NONE = -1, /* Drive no columns (tri-state all) */
- /* 0 ~ 12 for the corresponding column */
+ /* 0 ~ KEYBOARD_COLS-1 for the corresponding column */
};
/**