diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2017-10-11 13:59:10 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-17 11:07:44 -0700 |
commit | 33ec4ae3bc4a6c08e78fa6039b8f424627560bdc (patch) | |
tree | 236e714ac88b4c9e8c7065f337c3d8ef681b000c /include | |
parent | ebcbc5d5f284aacae3a09c12d426bc5187db4f27 (diff) | |
download | chrome-ec-33ec4ae3bc4a6c08e78fa6039b8f424627560bdc.tar.gz |
charge_manager: Support no-battery / no-host boards
Boards without batteries and/or without host command support may wish to
use charge_manager.
BUG=chromium:769895
BRANCH=None
TEST=`make buildall -j`
Change-Id: I2455528de3300a0651791752a05409c888b5f2a3
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/713943
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 9deed54b88..816fe15517 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1271,7 +1271,11 @@ extern const int pd_snk_pdo_cnt; * * @param mask host event mask. */ +#if defined(HAS_TASK_HOSTCMD) && !defined(TEST_BUILD) void pd_send_host_event(int mask); +#else +static inline void pd_send_host_event(int mask) { } +#endif /** * Determine if in alternate mode or not. |