Home
last modified time | relevance | path

Searched refs:chargetype (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dgpio-charger.c148 const char *chargetype; in gpio_charger_get_type() local
150 if (!device_property_read_string(dev, "charger-type", &chargetype)) { in gpio_charger_get_type()
151 if (!strcmp("unknown", chargetype)) in gpio_charger_get_type()
153 if (!strcmp("battery", chargetype)) in gpio_charger_get_type()
155 if (!strcmp("ups", chargetype)) in gpio_charger_get_type()
157 if (!strcmp("mains", chargetype)) in gpio_charger_get_type()
159 if (!strcmp("usb-sdp", chargetype)) in gpio_charger_get_type()
161 if (!strcmp("usb-dcp", chargetype)) in gpio_charger_get_type()
163 if (!strcmp("usb-cdp", chargetype)) in gpio_charger_get_type()
165 if (!strcmp("usb-aca", chargetype)) in gpio_charger_get_type()
[all …]