diff options
author | Jett Rink <jettrink@chromium.org> | 2019-10-07 11:09:01 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-08 17:14:48 +0000 |
commit | dd1dbd8fee7eedef8dad4fe8a8bbec14a0ea5b2e (patch) | |
tree | 1f7ac17718be363bdeb727a397c404c46f9ba041 /include | |
parent | 84ffa0bd38cba5e5daba8527c6ed09e91ca43edd (diff) | |
download | chrome-ec-dd1dbd8fee7eedef8dad4fe8a8bbec14a0ea5b2e.tar.gz |
usbc: fix cc interpretation error
Ensure that two Rp values are interpreted as a debug accessory. Added
unit test for meaningful combinations.
BRANCH=none
BUG=none
TEST=passes unit test.
Change-Id: Ia454382f20f9377edc944dc01be133e062c218b0
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1845811
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_common.h b/include/usb_common.h index 6fa7bb650f..85260d539d 100644 --- a/include/usb_common.h +++ b/include/usb_common.h @@ -8,6 +8,7 @@ /* Functions that are shared between old and new PD stacks */ #include "usb_pd.h" #include "usb_pd_tcpm.h" +#include "task_id.h" /* Returns the battery percentage [0-100] of the system. */ int usb_get_battery_soc(void); |