Home
last modified time | relevance | path

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

/openbmc/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
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
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()
97 static void wm97xx_bat_update(struct power_supply *bat_ps) in wm97xx_bat_update() argument
110 pr_debug("%s: %i -> %i\n", bat_ps->desc->name, old_status, in wm97xx_bat_update()
[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()
1130 charger->bat_ps = devm_power_supply_register(&pdev->dev, in rk817_charger_probe()
1132 if (IS_ERR(charger->bat_ps)) in rk817_charger_probe()
1142 ret = power_supply_get_battery_info(charger->bat_ps, in rk817_charger_probe()
1171 power_supply_put_battery_info(charger->bat_ps, bat_info); in rk817_charger_probe()