power: supply: gpio-charger: Do not use deprecated POWER_SUPPLY_TYPE_USB_*
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
fbd17e58d4
commit
fb4d494480
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue