summaryrefslogtreecommitdiff
path: root/include/host_command.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2016-11-14 14:48:56 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-16 07:09:28 -0800
commitbd60328a6e5f7f6199868f0d29414001f45d91d6 (patch)
treeb467e7a97f46a5380a3abd41bc907cea6bbed5e2 /include/host_command.h
parentc66d36761f9b590f10218a434e0cf9a320fd4424 (diff)
downloadchrome-ec-bd60328a6e5f7f6199868f0d29414001f45d91d6.tar.gz
include/host_command: Conditionally define host event functions
Some functions are only defined if CONFIG_HOSTCMD_EVENTS is set, leading to link-time failures. In particular, do not call these functions from keyboard_scan, and do not define PD host event commands if the configuration option is not set. BRANCH=none BUG=chrome-os-partner:59083 TEST=make buildall -j Change-Id: I0da31cdec08f86f148aa883698a44f462de46d8e Reviewed-on: https://chromium-review.googlesource.com/410923 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r--include/host_command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h
index 9df4689f24..720492158e 100644
--- a/include/host_command.h
+++ b/include/host_command.h
@@ -131,6 +131,7 @@ uint8_t *host_get_memmap(int offset);
*/
enum ec_status host_command_process(struct host_cmd_handler_args *args);
+#ifdef CONFIG_HOSTCMD_EVENTS
/**
* Set one or more host event bits.
*
@@ -160,6 +161,7 @@ void host_clear_events(uint32_t mask);
* Return the raw event state.
*/
uint32_t host_get_events(void);
+#endif
/**
* Send a response to the relevant driver for transmission