summaryrefslogtreecommitdiff
path: root/common/usb_port_power_smart.c
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-04-17 10:08:15 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-04-20 13:09:07 -0700
commit60d1bc789121fc3be998b48e8e93cafe8ec84069 (patch)
tree2fe5cffde66114a00f384b92a1e8067c054877ea /common/usb_port_power_smart.c
parent2a6d939e10b2449a16d627821ce6568ce05c1573 (diff)
downloadchrome-ec-60d1bc789121fc3be998b48e8e93cafe8ec84069.tar.gz
USB: Remove usb_charge_ports_enabled
usb_charge_ports_enabled is not used. BUG=none BRANCH=none TEST=make buildall Change-Id: I9465b65e9fab2603a4258adc4ae5f16d6bfc93c4 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/481076 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/usb_port_power_smart.c')
-rw-r--r--common/usb_port_power_smart.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/common/usb_port_power_smart.c b/common/usb_port_power_smart.c
index 7a2af2612b..86836df96d 100644
--- a/common/usb_port_power_smart.c
+++ b/common/usb_port_power_smart.c
@@ -99,25 +99,6 @@ static void usb_charge_all_ports_ctrl(enum usb_charge_mode mode)
usb_charge_set_mode(i, mode);
}
-int usb_charge_ports_enabled(void)
-{
- int mask = 0;
-
-#if CONFIG_USB_PORT_POWER_SMART_PORT_COUNT >= 1
- if (gpio_get_level(GPIO_USB1_ENABLE))
- mask |= (1 << 0);
-#endif
-#if CONFIG_USB_PORT_POWER_SMART_PORT_COUNT >= 2
- if (gpio_get_level(GPIO_USB2_ENABLE))
- mask |= (1 << 1);
-#endif
-#if CONFIG_USB_PORT_POWER_SMART_PORT_COUNT >= 3
- if (gpio_get_level(GPIO_USB3_ENABLE))
- mask |= (1 << 2);
-#endif
- return mask;
-}
-
int usb_charge_set_mode(int port_id, enum usb_charge_mode mode)
{
CPRINTS("USB charge p%d m%d", port_id, mode);