diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-02-10 17:22:37 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-12 20:05:32 +0000 |
commit | 7bbdd3cc90d174343cdc863515258de339f4c4dc (patch) | |
tree | fc11b65b5f175baa185829d3c13d9098d8cac1e9 /common/usb_pd_policy.c | |
parent | 8d3e54731e8f2a47a1822d08f4a403aef28be1de (diff) | |
download | chrome-ec-7bbdd3cc90d174343cdc863515258de339f4c4dc.tar.gz |
TCPMv1/v2: Move pd_charge_from_device() to common file
BUG=b:148528713
BRANCH=none
TEST=make buildall -j
Change-Id: I2327ceaf6be76a0428981106aaeb3ffbb2018049
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051217
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_pd_policy.c')
-rw-r--r-- | common/usb_pd_policy.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c index 6300b47a80..caa008fda6 100644 --- a/common/usb_pd_policy.c +++ b/common/usb_pd_policy.c @@ -107,17 +107,6 @@ unsigned pd_get_max_voltage(void) { return max_request_mv; } - -int pd_charge_from_device(uint16_t vid, uint16_t pid) -{ - /* TODO: rewrite into table if we get more of these */ - /* - * White-list Apple charge-through accessory since it doesn't set - * unconstrained bit, but we still need to charge from it when - * we are a sink. - */ - return (vid == USB_VID_APPLE && (pid == 0x1012 || pid == 0x1013)); -} #endif /* CONFIG_USB_PD_DUAL_ROLE */ static struct pd_cable cable[CONFIG_USB_PD_PORT_MAX_COUNT]; |