diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2014-10-09 11:55:26 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-10 02:43:39 +0000 |
commit | fd7846fe094ae70fbbdc3026c4500999a0adf737 (patch) | |
tree | 265e5fcc982844fa2e114b228d284cee96c182a1 /board/hoho | |
parent | 6f97b22ce727a4913dac3b271ec0912e4e1e3808 (diff) | |
download | chrome-ec-fd7846fe094ae70fbbdc3026c4500999a0adf737.tar.gz |
usb_pd: Add port parameter to pd_set_input_current_limit
Some platforms may need to take different actions depending on which
port is requesting a limit. Add a new port parameter to the
pd_set_input_current_limit API to accomodate this.
BUG=chrome-os-partner:32003
TEST=Manual on samus_pd. Verify zinger charges battery.
BRANCH=samus
Change-Id: I1578252c751b3a80b4da6ca68e2a958934283cbf
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222621
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/hoho')
-rw-r--r-- | board/hoho/usb_pd_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hoho/usb_pd_policy.c b/board/hoho/usb_pd_policy.c index 5523b2a95c..19881ac782 100644 --- a/board/hoho/usb_pd_policy.c +++ b/board/hoho/usb_pd_policy.c @@ -58,7 +58,7 @@ int pd_choose_voltage(int cnt, uint32_t *src_caps, uint32_t *rdo) return ma; } -void pd_set_input_current_limit(uint32_t max_ma) +void pd_set_input_current_limit(int port, uint32_t max_ma) { /* No battery, nothing to do */ return; |