summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2019-10-29 18:01:15 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-31 03:19:47 +0000
commit85ae91a99c04bc77b9c4fd3159e04fa4e9d0af16 (patch)
tree99cd23b4e56e337e75be9fc444e214eda8d2d0bb /include
parent0038f1e0dfd6738d71e07de60a0240e449d3f787 (diff)
downloadchrome-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 'include')
-rw-r--r--include/usb_pd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index df2d790cab..c4aad508ca 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -1584,7 +1584,7 @@ void typec_set_input_current_limit(int port, typec_current_t max_ma,
* @param port USB-C port number
* @param rp One of enum tcpc_rp_value (eg TYPEC_RP_3A0) defining the limit.
*/
-void typec_set_source_current_limit(int port, int rp);
+void typec_set_source_current_limit(int port, enum tcpc_rp_value rp);
/**
* Verify board specific health status : current, voltages...