summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-03-11 11:44:18 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-13 03:40:49 +0000
commit4c75ac48d3d366e950ebb0def90e661d70a13895 (patch)
treeb76f3104c8550f494a447f535920a72b08eae5c5 /include
parent179972d2f99d454edb7240892a5878b02669de9c (diff)
downloadchrome-ec-4c75ac48d3d366e950ebb0def90e661d70a13895.tar.gz
pd: make source-only PD devices compatible with the common runtime
Add the proper checks to be able to compile source-only PD devices with the common runtime. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:37078 TEST=make buildall build honeybuns without CONFIG_USB_PD_DUAL_ROLE defined Change-Id: I7ad0b39b2e62736117ec2d7b5163502afbf14786 Reviewed-on: https://chromium-review.googlesource.com/259112 Reviewed-by: Scott Collyer <scollyer@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 14200efa2c..cf8dffc41f 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -580,8 +580,8 @@ struct pd_policy {
enum pd_states {
PD_STATE_DISABLED,
-#ifdef CONFIG_USB_PD_DUAL_ROLE
PD_STATE_SUSPENDED,
+#ifdef CONFIG_USB_PD_DUAL_ROLE
PD_STATE_SNK_DISCONNECTED,
PD_STATE_SNK_DISCONNECTED_DEBOUNCE,
PD_STATE_SNK_HARD_RESET_RECOVER,