Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185686
b: refs/heads/master
c: b4de360
h: refs/heads/master
v: v3
  • Loading branch information
Grazvydas Ignotas authored and Anton Vorontsov committed Feb 16, 2010
1 parent f75d03f commit 2277afb
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: ba96f8717e77f1ef68c160f6e9a454b3ce2c045b
refs/heads/master: b4de3608156311b615da4bcc4c095913abc44825
4 changes: 2 additions & 2 deletions trunk/drivers/power/bq27x00_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static int bq27x00_read(u8 reg, int *rt_value, int b_single,
}

/*
* Return the battery temperature in Celsius degrees
* Return the battery temperature in tenths of degree Celsius
* Or < 0 if something fails.
*/
static int bq27x00_battery_temperature(struct bq27x00_device_info *di)
Expand All @@ -88,7 +88,7 @@ static int bq27x00_battery_temperature(struct bq27x00_device_info *di)
return ret;
}

return (temp >> 2) - 273;
return ((temp >> 2) - 273) * 10;
}

/*
Expand Down

0 comments on commit 2277afb

Please sign in to comment.