Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dwm97xx_battery.c28 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat() argument
30 struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); in wm97xx_read_bat()
32 return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev.parent), in wm97xx_read_bat()
37 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp() argument
39 struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); in wm97xx_read_temp()
41 return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev.parent), in wm97xx_read_temp()
46 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property() argument
50 struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); in wm97xx_bat_get_property()
61 val->intval = wm97xx_read_bat(bat_ps); in wm97xx_bat_get_property()
67 val->intval = wm97xx_read_temp(bat_ps); in wm97xx_bat_get_property()
[all …]
H A Drk817_charger.c52 struct power_supply *bat_ps; member
602 power_supply_changed(charger->bat_ps); in rk817_plug_in_isr()
621 power_supply_changed(charger->bat_ps); in rk817_plug_out_isr()
1125 charger->bat_ps = devm_power_supply_register(&pdev->dev, in rk817_charger_probe()
1127 if (IS_ERR(charger->bat_ps)) in rk817_charger_probe()
1137 ret = power_supply_get_battery_info(charger->bat_ps, in rk817_charger_probe()
1166 power_supply_put_battery_info(charger->bat_ps, bat_info); in rk817_charger_probe()