diff options
author | Denis Brockus <dbrockus@chromium.org> | 2020-01-08 06:54:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-09 19:24:10 +0000 |
commit | d3a1820df21b12842232ab88a5c1a0490640bb25 (patch) | |
tree | b0855ad62d8c5f42178cec6cf9038563c9253fb1 /board/servo_v4 | |
parent | a6591e9d5c7caa04f94e604d8a649d9f8e6d5b5b (diff) | |
download | chrome-ec-d3a1820df21b12842232ab88a5c1a0490640bb25.tar.gz |
pd: cleanup pd_get_role
pd_get_role in the TCPMv1 stack meant pd_get_power_role.
pd_get_role in the TCPMv2 stack meant pd_get_data_role.
This CL will clean that up and make them the correct naming.
pd_get_power_role will also return an enum pd_power_role
type instead of an int.
BUG=b:147290482
BRANCH=none
TEST=make buildall -j
Change-Id: I73ee465401ccd050c2bd151f2fc043a59d95e079
Signed-off-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1991844
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/servo_v4')
-rw-r--r-- | board/servo_v4/usb_pd_policy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/servo_v4/usb_pd_policy.c b/board/servo_v4/usb_pd_policy.c index 61b6b51314..862d2d9fdc 100644 --- a/board/servo_v4/usb_pd_policy.c +++ b/board/servo_v4/usb_pd_policy.c @@ -729,7 +729,9 @@ __override void pd_execute_data_swap(int port, int data_role) */ } -__override void pd_check_pr_role(int port, int pr_role, int flags) +__override void pd_check_pr_role(int port, + enum pd_power_role pr_role, + int flags) { /* * Don't define any policy to initiate power role swap. |