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

/linux-4.1.27/drivers/power/
H A Dwm97xx_battery.c33 static unsigned long wm97xx_read_bat(struct power_supply *bat_ps) wm97xx_read_bat() argument
35 struct wm97xx_pdata *wmdata = bat_ps->dev.parent->platform_data; wm97xx_read_bat()
38 return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev.parent), wm97xx_read_bat()
43 static unsigned long wm97xx_read_temp(struct power_supply *bat_ps) wm97xx_read_temp() argument
45 struct wm97xx_pdata *wmdata = bat_ps->dev.parent->platform_data; wm97xx_read_temp()
48 return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev.parent), wm97xx_read_temp()
53 static int wm97xx_bat_get_property(struct power_supply *bat_ps, wm97xx_bat_get_property() argument
57 struct wm97xx_pdata *wmdata = bat_ps->dev.parent->platform_data; wm97xx_bat_get_property()
69 val->intval = wm97xx_read_bat(bat_ps); wm97xx_bat_get_property()
75 val->intval = wm97xx_read_temp(bat_ps); wm97xx_bat_get_property()
100 static void wm97xx_bat_external_power_changed(struct power_supply *bat_ps) wm97xx_bat_external_power_changed() argument
105 static void wm97xx_bat_update(struct power_supply *bat_ps) wm97xx_bat_update() argument
108 struct wm97xx_pdata *wmdata = bat_ps->dev.parent->platform_data; wm97xx_bat_update()
120 pr_debug("%s: %i -> %i\n", bat_ps->desc->name, old_status, wm97xx_bat_update()
122 power_supply_changed(bat_ps); wm97xx_bat_update()

Completed in 115 milliseconds