Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/power/supply/
Dwm97xx_battery.c118 static struct power_supply *bat_psy; variable
128 wm97xx_bat_update(bat_psy); in wm97xx_bat_work()
234 bat_psy = power_supply_register(&dev->dev, &bat_psy_desc, &cfg); in wm97xx_bat_probe()
235 if (!IS_ERR(bat_psy)) { in wm97xx_bat_probe()
238 ret = PTR_ERR(bat_psy); in wm97xx_bat_probe()
256 power_supply_unregister(bat_psy); in wm97xx_bat_remove()
Dlenovo_yoga_c630_battery.c29 struct power_supply *bat_psy; member
371 ecbat->bat_psy = power_supply_register_no_ws(ecbat->dev, in yoga_c630_psy_register_bat_psy()
376 if (IS_ERR(ecbat->bat_psy)) { in yoga_c630_psy_register_bat_psy()
378 return PTR_ERR(ecbat->bat_psy); in yoga_c630_psy_register_bat_psy()
395 power_supply_unregister(ecbat->bat_psy); in yoga_c630_ec_refresh_bat_info()
413 power_supply_changed(ecbat->bat_psy); in yoga_c630_psy_notify()
468 power_supply_unregister(ecbat->bat_psy); in yoga_c630_psy_probe()
477 power_supply_unregister(ecbat->bat_psy); in yoga_c630_psy_remove()
Dqcom_smbb.c121 struct power_supply *bat_psy; member
417 power_supply_changed(chg->bat_psy); in smbb_bat_temp_handler()
426 power_supply_changed(chg->bat_psy); in smbb_bat_present_handler()
436 power_supply_changed(chg->bat_psy); in smbb_chg_done_handler()
446 power_supply_changed(chg->bat_psy); in smbb_chg_gone_handler()
459 power_supply_changed(chg->bat_psy); in smbb_chg_fast_handler()
469 power_supply_changed(chg->bat_psy); in smbb_chg_trkl_handler()
884 chg->bat_psy = devm_power_supply_register(&pdev->dev, in smbb_charger_probe()
887 if (IS_ERR(chg->bat_psy)) { in smbb_charger_probe()
889 return PTR_ERR(chg->bat_psy); in smbb_charger_probe()
Dqcom_battmgr.c290 struct power_supply *bat_psy; member
952 power_supply_changed(battmgr->bat_psy); in qcom_battmgr_notification()
1357 battmgr->bat_psy = devm_power_supply_register(dev, &sc8280xp_bat_psy_desc, &psy_cfg); in qcom_battmgr_probe()
1358 if (IS_ERR(battmgr->bat_psy)) in qcom_battmgr_probe()
1359 return dev_err_probe(dev, PTR_ERR(battmgr->bat_psy), in qcom_battmgr_probe()
1377 battmgr->bat_psy = devm_power_supply_register(dev, &sm8350_bat_psy_desc, &psy_cfg); in qcom_battmgr_probe()
1378 if (IS_ERR(battmgr->bat_psy)) in qcom_battmgr_probe()
1379 return dev_err_probe(dev, PTR_ERR(battmgr->bat_psy), in qcom_battmgr_probe()
/linux-6.12.1/drivers/platform/arm64/
Dacer-aspire1-ec.c68 struct power_supply *bat_psy; member
146 power_supply_changed(ec->bat_psy); in aspire_ec_irq_handler()
463 ec->bat_psy = devm_power_supply_register(dev, &aspire_ec_bat_psy_desc, &psy_cfg); in aspire_ec_probe()
464 if (IS_ERR(ec->bat_psy)) in aspire_ec_probe()
465 return dev_err_probe(dev, PTR_ERR(ec->bat_psy), in aspire_ec_probe()