diff options
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]; |