diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-02-10 16:00:42 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-12 20:05:31 +0000 |
commit | 7460621eae83145ea57d42c0eb6daf486286f234 (patch) | |
tree | db327d2b2bcf77442f6d7f5284ab55247cbb7515 /board/plankton | |
parent | e34464e92cc0d13e1fc4a7647897bf534be52444 (diff) | |
download | chrome-ec-7460621eae83145ea57d42c0eb6daf486286f234.tar.gz |
TCPMv1/v2: Move pd_check_requested_voltage() to common file
BUG=b:148528713
BRANCH=none
TEST=make buildall -j
Change-Id: I5ba854552b5c6124e3c6758273651edc0e3c23ae
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051214
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/plankton')
-rw-r--r-- | board/plankton/usb_pd_policy.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c index d575e29f83..87718648f1 100644 --- a/board/plankton/usb_pd_policy.c +++ b/board/plankton/usb_pd_policy.c @@ -68,15 +68,6 @@ void pd_set_input_current_limit(int port, uint32_t max_ma, return; } -int pd_board_check_request(uint32_t rdo, int pdo_cnt) -{ - int idx = RDO_POS(rdo); - - /* Check for invalid index */ - return (!idx || idx > pdo_cnt) ? - EC_ERROR_INVAL : EC_SUCCESS; -} - __override void pd_transition_voltage(int idx) { gpio_set_level(GPIO_USBC_VSEL_0, idx >= 2); |