diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2018-09-29 10:03:27 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-12-13 00:17:01 +0100 |
commit | fb4d49448026bf1aee917426f74dc1f5342ba908 (patch) | |
tree | 5e984ac584a0251ba424ba575176351a595e72b2 | |
parent | fbd17e58d472d7ec49810c6cd87900d73e75bb2b (diff) | |
download | linux-fb4d49448026bf1aee917426f74dc1f5342ba908.tar.gz linux-fb4d49448026bf1aee917426f74dc1f5342ba908.tar.bz2 linux-fb4d49448026bf1aee917426f74dc1f5342ba908.zip |
power: supply: gpio-charger: Do not use deprecated POWER_SUPPLY_TYPE_USB_*
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r-- | drivers/power/supply/gpio-charger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/supply/gpio-charger.c b/drivers/power/supply/gpio-charger.c index c3f2a9479468..7e4f11d5a230 100644 --- a/drivers/power/supply/gpio-charger.c +++ b/drivers/power/supply/gpio-charger.c @@ -82,11 +82,11 @@ static enum power_supply_type gpio_charger_get_type(struct device *dev) if (!strcmp("usb-sdp", chargetype)) return POWER_SUPPLY_TYPE_USB; if (!strcmp("usb-dcp", chargetype)) - return POWER_SUPPLY_TYPE_USB_DCP; + return POWER_SUPPLY_TYPE_USB; if (!strcmp("usb-cdp", chargetype)) - return POWER_SUPPLY_TYPE_USB_CDP; + return POWER_SUPPLY_TYPE_USB; if (!strcmp("usb-aca", chargetype)) - return POWER_SUPPLY_TYPE_USB_ACA; + return POWER_SUPPLY_TYPE_USB; } dev_warn(dev, "unknown charger type %s\n", chargetype); |