summaryrefslogtreecommitdiff
path: root/include/usb_common.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-10-07 11:09:01 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-08 17:14:48 +0000
commitdd1dbd8fee7eedef8dad4fe8a8bbec14a0ea5b2e (patch)
tree1f7ac17718be363bdeb727a397c404c46f9ba041 /include/usb_common.h
parent84ffa0bd38cba5e5daba8527c6ed09e91ca43edd (diff)
downloadchrome-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/usb_common.h')
-rw-r--r--include/usb_common.h1
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);