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 /chip/host | |
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 'chip/host')
-rw-r--r-- | chip/host/usb_pd_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/host/usb_pd_phy.c b/chip/host/usb_pd_phy.c index 347035a6d0..ba81b986ad 100644 --- a/chip/host/usb_pd_phy.c +++ b/chip/host/usb_pd_phy.c @@ -358,7 +358,7 @@ void pd_hw_release(int port) pd_phy[port].hw_init_done = 0; } -void pd_hw_init(int port, int role) +void pd_hw_init(int port, enum pd_power_role role) { pd_config_init(port, role); pd_phy[port].hw_init_done = 1; |