Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
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()
[all …]