diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2017-05-09 17:30:01 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-10 07:08:31 -0700 |
commit | 59c8289a69bac567a239ba81b98ecd2f215fb815 (patch) | |
tree | b0e2ee909d223fa7284a96abd4ddb675f450c13a /include/console.h | |
parent | 57bcc097f1c9e9eb12f00916f9bacb74848950e5 (diff) | |
download | chrome-ec-59c8289a69bac567a239ba81b98ecd2f215fb815.tar.gz |
g: fix build without CONFIG_RESTRICTED_CONSOLE_COMMANDS
console_is_restricted() function exists only if
CONFIG_RESTRICTED_CONSOLE_COMMANDS is defined, and a stub if it doesn't.
so we can use CONFIG_LOW_POWER_IDLE without the former.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=b:38160821
TEST=manual: build 'proto2' board with CONFIG_LOW_POWER_IDLE defined.
Change-Id: I0c7fd201a1f07371aee2420eafd96ac62a5ae4ca
Reviewed-on: https://chromium-review.googlesource.com/500148
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 3f8935a525..d8da234a24 100644 --- a/include/console.h +++ b/include/console.h @@ -41,6 +41,11 @@ struct console_command { * CMD_FLAG_RESTRICTED commands are disabled. */ int console_is_restricted(void); +#else +static inline int console_is_restricted(void) +{ + return 0; +} #endif /* Console channels */ |