diff options
author | Jett Rink <jettrink@chromium.org> | 2019-10-17 09:33:31 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-24 18:01:17 +0000 |
commit | e248f208ab8a55667bfe60ce48a188fc1a4620cc (patch) | |
tree | 2b3955afb2a53432c09467998e930407a47f02c1 /test/fake_usbc.c | |
parent | 39f7d5d0e5c3ae72b9837a676fac401dfe51e745 (diff) | |
download | chrome-ec-e248f208ab8a55667bfe60ce48a188fc1a4620cc.tar.gz |
cleanup: clean up reference to power role vs cable plug
The PD header specifies the power role for SOP packets and cable plug for
SOP' and SOP" packets. Refactor code to make this more obvious.
BRANCH=none
BUG=none
TEST=builds and new stack runs on hatch
Change-Id: I6cdb1561082d2142214ac65703ff42586b16d70b
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1865986
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/fake_usbc.c')
-rw-r--r-- | test/fake_usbc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 9f2d4c12ae..b0137cb893 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -46,6 +46,11 @@ void tc_set_power_role(int port, enum pd_power_role role) power_role = role; } +enum pd_cable_plug tc_get_cable_plug(int port) +{ + return PD_PLUG_FROM_DFP_UFP; +} + int tc_check_vconn_swap(int port) { return 0; |