diff options
author | Denis Brockus <dbrockus@chromium.org> | 2020-01-08 07:59:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-09 19:24:11 +0000 |
commit | 4ae38ae35d55559feb1524bdbc1482ca7c858f2b (patch) | |
tree | eebeb418c36bf28914cc02452f74dd494842cea9 /board/nami | |
parent | d3a1820df21b12842232ab88a5c1a0490640bb25 (diff) | |
download | chrome-ec-4ae38ae35d55559feb1524bdbc1482ca7c858f2b.tar.gz |
pd: cleanup pd_get_data_role
This is the second half of b/147290482
Cleaning up to use pd_data_role instead of int
BUG=b:147314832
BRANCH=none
TEST=make buildall -j
Change-Id: I2445b06f5f5469fb1f3a968034a83e3ee792e7c7
Signed-off-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1991845
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/nami')
-rw-r--r-- | board/nami/usb_pd_policy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/nami/usb_pd_policy.c b/board/nami/usb_pd_policy.c index e42d0ec5b4..c1d5591d7c 100644 --- a/board/nami/usb_pd_policy.c +++ b/board/nami/usb_pd_policy.c @@ -103,7 +103,8 @@ int pd_check_vconn_swap(int port) return gpio_get_level(GPIO_PMIC_SLP_SUS_L); } -__override void pd_execute_data_swap(int port, int data_role) +__override void pd_execute_data_swap(int port, + enum pd_data_role data_role) { /* Only port 0 supports device mode. */ if (port != 0) |