summaryrefslogtreecommitdiff
path: root/include/keyboard_scan.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-05-04 16:55:00 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-05-08 07:04:06 -0700
commita16b2e7c2d03bb64787770c114920fa8f5635a82 (patch)
treeac2207283e51c6908b2e59e44126a17fb3e7fd95 /include/keyboard_scan.h
parent541ddb0f889c2630e457fbab475cf6e2f781b54c (diff)
downloadchrome-ec-a16b2e7c2d03bb64787770c114920fa8f5635a82.tar.gz
keyboard_scan: Add option to not handle boot key combinations
On some boards, the boot key combinations do not make a lot of sense, so we can just not process them and save a little bit of code space. BRANCH=none BUG=b:37422577 TEST=Flash hammer TEST=make newsizes shows we save 156 bytes in hammer RW. Change-Id: Ic96d7ed1dbee10f44f8b08568ab70b2f20961842 Reviewed-on: https://chromium-review.googlesource.com/495968 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/keyboard_scan.h')
-rw-r--r--include/keyboard_scan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h
index 94457dd16d..bce5046c9e 100644
--- a/include/keyboard_scan.h
+++ b/include/keyboard_scan.h
@@ -56,7 +56,7 @@ enum boot_key {
BOOT_KEY_LEFT_SHIFT = (1 << 2),
};
-#ifdef HAS_TASK_KEYSCAN
+#if defined(HAS_TASK_KEYSCAN) && defined(CONFIG_KEYBOARD_BOOT_KEYS)
/**
* Returns mask of all the keys held down at boot time in addition to the
* keyboard-controlled reset keys. If more than one boot key is held, mask bits