summaryrefslogtreecommitdiff
path: root/board/plankton/usb_pd_policy.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2014-10-09 11:55:26 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-10 02:43:39 +0000
commitfd7846fe094ae70fbbdc3026c4500999a0adf737 (patch)
tree265e5fcc982844fa2e114b228d284cee96c182a1 /board/plankton/usb_pd_policy.c
parent6f97b22ce727a4913dac3b271ec0912e4e1e3808 (diff)
downloadchrome-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/plankton/usb_pd_policy.c')
-rw-r--r--board/plankton/usb_pd_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c
index e611c8d827..a3136bfeed 100644
--- a/board/plankton/usb_pd_policy.c
+++ b/board/plankton/usb_pd_policy.c
@@ -83,7 +83,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;