summaryrefslogtreecommitdiff
path: root/test/kb_scan.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-05-09 00:24:33 +0800
committerChromeBot <chrome-bot@google.com>2013-05-08 13:24:19 -0700
commita0bfc0c6698c01f722ed56bee8871f0620142db3 (patch)
tree23012995513931d68d5f358128eb9305cf8d333d /test/kb_scan.c
parentac3488cd0b41ade3dd38ec61c4b07db6489f2260 (diff)
downloadchrome-ec-a0bfc0c6698c01f722ed56bee8871f0620142db3.tar.gz
Add lid switch test and enable kb_mkbp test
BUG=chrome-os-partner:19236 TEST=Pass both tests BRANCH=None CQ-DEPEND=CL:50467 Change-Id: I59cc407c2d1bf7f549ff9c46226cf7fa60fe7157 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/50466
Diffstat (limited to 'test/kb_scan.c')
-rw-r--r--test/kb_scan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/kb_scan.c b/test/kb_scan.c
index c242c43e09..be08e838ff 100644
--- a/test/kb_scan.c
+++ b/test/kb_scan.c
@@ -11,6 +11,7 @@
#include "gpio.h"
#include "keyboard_raw.h"
#include "keyboard_scan.h"
+#include "lid_switch.h"
#include "task.h"
#include "timer.h"
#include "util.h"
@@ -53,11 +54,9 @@ static int error_count;
static int lid_open;
#ifdef CONFIG_LID_SWITCH
-int gpio_get_level(enum gpio_signal signal)
+int lid_is_open(void)
{
- if (signal == GPIO_LID_OPEN)
- return lid_open;
- return 0;
+ return lid_open;
}
#endif