Home
last modified time | relevance | path

Searched refs:bat_ps (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/power/supply/
H A Dwm97xx_battery.c27 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) in wm97xx_read_bat() argument
29 struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); in wm97xx_read_bat()
31 return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev.parent), in wm97xx_read_bat()
36 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) in wm97xx_read_temp() argument
38 struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); in wm97xx_read_temp()
40 return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev.parent), in wm97xx_read_temp()
45 static int wm97xx_bat_get_property(struct power_supply *bat_ps, in wm97xx_bat_get_property() argument
49 struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); in wm97xx_bat_get_property()
60 val->intval = wm97xx_read_bat(bat_ps); in wm97xx_bat_get_property()
66 val->intval = wm97xx_read_temp(bat_ps); in wm97xx_bat_get_property()
91 wm97xx_bat_external_power_changed(struct power_supply *bat_ps) wm97xx_bat_external_power_changed() argument
96 wm97xx_bat_update(struct power_supply *bat_ps) wm97xx_bat_update() argument
[all...]
/kernel/linux/linux-6.6/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()
92 wm97xx_bat_external_power_changed(struct power_supply *bat_ps) wm97xx_bat_external_power_changed() argument
97 wm97xx_bat_update(struct power_supply *bat_ps) wm97xx_bat_update() argument
[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()

Completed in 3 milliseconds