diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-02-11 11:47:50 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-12 20:05:33 +0000 |
commit | d34cf65162e9b75dd4e3c929ecacdb450b5a73e5 (patch) | |
tree | 2ff6c282bc1cf1d2b62ea1f8bfe8a077f1059a3e /common/usb_pd_policy.c | |
parent | 7bbdd3cc90d174343cdc863515258de339f4c4dc (diff) | |
download | chrome-ec-d34cf65162e9b75dd4e3c929ecacdb450b5a73e5.tar.gz |
TCPMv1/v2: Move pd_get/set_max_voltage() to common file
BUG=b:148528713
BRANCH=none
TEST=make buildall -j
Change-Id: I6fd4c870b8821a2393c67fda7003583b91ef7f5c
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051218
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_pd_policy.c')
-rw-r--r-- | common/usb_pd_policy.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c index caa008fda6..adce64b65f 100644 --- a/common/usb_pd_policy.c +++ b/common/usb_pd_policy.c @@ -58,9 +58,6 @@ void pd_notify_dp_alt_mode_entry(void) static uint32_t pd_src_caps[CONFIG_USB_PD_PORT_MAX_COUNT][PDO_MAX_OBJECTS]; static uint8_t pd_src_cap_cnt[CONFIG_USB_PD_PORT_MAX_COUNT]; -/* Cap on the max voltage requested as a sink (in millivolts) */ -static unsigned max_request_mv = PD_MAX_VOLTAGE_MV; /* no cap */ - const uint32_t * const pd_get_src_caps(int port) { ASSERT(port < CONFIG_USB_PD_PORT_MAX_COUNT); @@ -97,16 +94,6 @@ void pd_process_source_cap(int port, int cnt, uint32_t *src_caps) pd_set_input_current_limit(port, ma, mv); #endif } - -void pd_set_max_voltage(unsigned mv) -{ - max_request_mv = mv; -} - -unsigned pd_get_max_voltage(void) -{ - return max_request_mv; -} #endif /* CONFIG_USB_PD_DUAL_ROLE */ static struct pd_cable cable[CONFIG_USB_PD_PORT_MAX_COUNT]; |