Lines Matching full:battery
3 * Battery driver for the Ingenic JZ47xx SoCs
6 * based on drivers/power/supply/jz4740-battery.c
20 struct power_supply *battery; member
61 * based on the battery's max voltage.
138 bat->channel = devm_iio_channel_get(dev, "battery"); in ingenic_battery_probe()
143 desc->name = "jz-battery"; in ingenic_battery_probe()
151 bat->battery = devm_power_supply_register(dev, desc, &psy_cfg); in ingenic_battery_probe()
152 if (IS_ERR(bat->battery)) in ingenic_battery_probe()
153 return dev_err_probe(dev, PTR_ERR(bat->battery), in ingenic_battery_probe()
154 "Unable to register battery\n"); in ingenic_battery_probe()
156 ret = power_supply_get_battery_info(bat->battery, &bat->info); in ingenic_battery_probe()
158 dev_err(dev, "Unable to get battery info: %d\n", ret); in ingenic_battery_probe()
175 { .compatible = "ingenic,jz4740-battery", },
183 .name = "ingenic-battery",
190 MODULE_DESCRIPTION("Battery driver for Ingenic JZ47xx SoCs");