Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198151
b: refs/heads/master
c: 06b9e65
h: refs/heads/master
i:
  198149: 55aef4e
  198147: 38aeeee
  198143: 5c45800
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Anton Vorontsov committed May 2, 2010
1 parent d6461cf commit a4486a2
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: b1458fb57de03b19296cac70e9455b05912782b5
refs/heads/master: 06b9e650ce5eaf14ac1486b2f05baaf2ba22ad22
4 changes: 2 additions & 2 deletions trunk/drivers/power/tosa_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static unsigned long tosa_read_bat(struct tosa_bat *bat)
mutex_lock(&bat_lock);
gpio_set_value(bat->gpio_bat, 1);
msleep(5);
value = wm97xx_read_aux_adc(bat->psy.dev->parent->driver_data,
value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy.dev->parent),
bat->adc_bat);
gpio_set_value(bat->gpio_bat, 0);
mutex_unlock(&bat_lock);
Expand All @@ -81,7 +81,7 @@ static unsigned long tosa_read_temp(struct tosa_bat *bat)
mutex_lock(&bat_lock);
gpio_set_value(bat->gpio_temp, 1);
msleep(5);
value = wm97xx_read_aux_adc(bat->psy.dev->parent->driver_data,
value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy.dev->parent),
bat->adc_temp);
gpio_set_value(bat->gpio_temp, 0);
mutex_unlock(&bat_lock);
Expand Down

0 comments on commit a4486a2

Please sign in to comment.