summaryrefslogtreecommitdiff
path: root/common/keyboard_8042.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-04-24 14:39:53 -0700
committerChromeBot <chrome-bot@google.com>2013-04-24 16:32:58 -0700
commit0bfb7ddd0713b3476a077f905e96dfa9b1e22d86 (patch)
tree9624ef46c4442a77bfd1c025e95635c7b534e903 /common/keyboard_8042.c
parent39b0f6ce0c86a2b8adf37624c08279bfe322686e (diff)
downloadchrome-ec-0bfb7ddd0713b3476a077f905e96dfa9b1e22d86.tar.gz
Replace generated CONFIG_TASK_ macros with HAS_TASK_
CONFIG_ macros should be set directly. Expanding the task names in the same way made it difficult to tell what was a configuration choice and what was due to changes in ec.tasklist BUG=chrome-os-partner:18343 TEST=build all, run link BRANCH=none Change-Id: Ib82e34f974238ee2dd216f33b701b6f4c6a4f1f1 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49098 Reviewed-by: Randall Spangler <rspangler@chromium.org>
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 4a058a4f58..a65c935558 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -792,7 +792,7 @@ static void keyboard_special(uint16_t k)
static uint8_t s;
static const uint16_t a[] = {0xe048, 0xe048, 0xe050, 0xe050, 0xe04b,
0xe04d, 0xe04b, 0xe04d, 0x0030, 0x001e};
-#ifdef CONFIG_TASK_LIGHTBAR
+#ifdef HAS_TASK_LIGHTBAR
/* Lightbar demo mode: keyboard can fake the battery state */
switch (k) {
case 0xe048: /* up */
@@ -825,7 +825,7 @@ static void keyboard_special(uint16_t k)
if (s == ARRAY_SIZE(a)) {
s = 0;
-#ifdef CONFIG_TASK_LIGHTBAR
+#ifdef HAS_TASK_LIGHTBAR
lightbar_sequence(LIGHTBAR_KONAMI);
#endif
}