Lines Matching refs:bat_ps
28 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 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) in wm97xx_bat_external_power_changed() argument
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()
112 power_supply_changed(bat_ps); in wm97xx_bat_update()