diff options
author | Caveh Jalali <caveh@chromium.org> | 2019-10-29 18:01:15 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-31 03:19:47 +0000 |
commit | 85ae91a99c04bc77b9c4fd3159e04fa4e9d0af16 (patch) | |
tree | 99cd23b4e56e337e75be9fc444e214eda8d2d0bb /board/nautilus | |
parent | 0038f1e0dfd6738d71e07de60a0240e449d3f787 (diff) | |
download | chrome-ec-85ae91a99c04bc77b9c4fd3159e04fa4e9d0af16.tar.gz |
usb_pd: use enum tcpc_rp_value instead of int
this changes the declaration and definitions of
typec_set_source_current_limit() to take an enum tcpc_rp_value instead
of int.
BRANCH=none
BUG=none
TEST=buildall passes
Change-Id: If633641a581eeb6085b94bc727e23fb57f7cd435
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1889117
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/nautilus')
-rw-r--r-- | board/nautilus/usb_pd_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nautilus/usb_pd_policy.c b/board/nautilus/usb_pd_policy.c index aa1c185345..85cc85dd78 100644 --- a/board/nautilus/usb_pd_policy.c +++ b/board/nautilus/usb_pd_policy.c @@ -96,7 +96,7 @@ static void board_vbus_update_source_current(int port) } } -void typec_set_source_current_limit(int port, int rp) +void typec_set_source_current_limit(int port, enum tcpc_rp_value rp) { vbus_rp[port] = rp; |