From 85ae91a99c04bc77b9c4fd3159e04fa4e9d0af16 Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Tue, 29 Oct 2019 18:01:15 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1889117 Reviewed-by: Daisuke Nojiri --- board/scarlet/usb_pd_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/scarlet') diff --git a/board/scarlet/usb_pd_policy.c b/board/scarlet/usb_pd_policy.c index e75e99f01c..75ddb97d8c 100644 --- a/board/scarlet/usb_pd_policy.c +++ b/board/scarlet/usb_pd_policy.c @@ -90,7 +90,7 @@ void pd_power_supply_reset(int port) pd_send_host_event(PD_EVENT_POWER_CHANGE); } -void typec_set_source_current_limit(int port, int rp) +void typec_set_source_current_limit(int port, enum tcpc_rp_value rp) { /* No-operation */ } -- cgit v1.2.1