Lines Matching full:charger
25 POWER_SUPPLY_PROP_ONLINE, /* charger is active or not */
28 /* Note that the charger control is done by a current regulator "CHARGER" */
33 struct charger_data *charger = power_supply_get_drvdata(psy); in max8997_battery_get_property() local
34 struct i2c_client *i2c = charger->iodev->i2c; in max8997_battery_get_property()
85 struct charger_data *charger; in max8997_battery_probe() local
135 charger = devm_kzalloc(&pdev->dev, sizeof(*charger), GFP_KERNEL); in max8997_battery_probe()
136 if (!charger) in max8997_battery_probe()
139 platform_set_drvdata(pdev, charger); in max8997_battery_probe()
142 charger->dev = &pdev->dev; in max8997_battery_probe()
143 charger->iodev = iodev; in max8997_battery_probe()
145 psy_cfg.drv_data = charger; in max8997_battery_probe()
147 charger->battery = devm_power_supply_register(&pdev->dev, in max8997_battery_probe()
150 if (IS_ERR(charger->battery)) { in max8997_battery_probe()
152 return PTR_ERR(charger->battery); in max8997_battery_probe()