Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155415
b: refs/heads/master
c: 38c7dc3
h: refs/heads/master
i:
  155413: 73db4e8
  155411: 777fd4e
  155407: f2dc9f5
v: v3
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Jul 12, 2009
1 parent 2838335 commit 608bb28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e9a8bd65761bf0c1ee26d8514ef3e9ff22ee465
refs/heads/master: 38c7dc373029e4666b17850054dd43c1c96bb264
4 changes: 2 additions & 2 deletions trunk/drivers/power/wm97xx_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 608bb28

Please sign in to comment.