summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-10-17 09:32:44 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-23 18:19:39 +0000
commit0c9970ebeab1810667f49ebe6d7f3a14c5c7fe71 (patch)
tree296641c95ca3773ea8b82a657bb317aa7de0ad20 /include
parentbd751b403f996c603f28f20810a8fa2bf257553e (diff)
downloadchrome-ec-0c9970ebeab1810667f49ebe6d7f3a14c5c7fe71.tar.gz
usb: Remove invalid data role from enum
The data role as defined in the USB spec is 1 bit. Disconnected does not fit and no one is using it properly. All users of Disconnected value alias the value to DFP anyway. Just use DFP explicitly BRANCH=none BUG=none TEST=builds and runs new stack on hatch Change-Id: I5c7dddea8f34c8e3c524da8701913c87c23b42b2 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1865984
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index b29e39a4c7..67bdb0e6cf 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -1247,7 +1247,6 @@ enum pd_power_role {
enum pd_data_role {
PD_ROLE_UFP,
PD_ROLE_DFP,
- PD_ROLE_DISCONNECTED
};
/* Cable plug */