mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
wm97xx_batery: replace driver_data with dev_get_drvdata()
direct access of driver_data is going away. Signed-off-by: Alexander Beregalov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5e9a8bd657
commit
38c7dc3730
1 changed files with 2 additions and 2 deletions
|
|
@ -33,14 +33,14 @@ static enum power_supply_property *prop;
|
|||
|
||||
static unsigned long wm97xx_read_bat(struct power_supply *bat_ps)
|
||||
{
|
||||
return wm97xx_read_aux_adc(bat_ps->dev->parent->driver_data,
|
||||
return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev->parent),
|
||||
pdata->batt_aux) * pdata->batt_mult /
|
||||
pdata->batt_div;
|
||||
}
|
||||
|
||||
static unsigned long wm97xx_read_temp(struct power_supply *bat_ps)
|
||||
{
|
||||
return wm97xx_read_aux_adc(bat_ps->dev->parent->driver_data,
|
||||
return wm97xx_read_aux_adc(dev_get_drvdata(bat_ps->dev->parent),
|
||||
pdata->temp_aux) * pdata->temp_mult /
|
||||
pdata->temp_div;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue