Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83487
b: refs/heads/master
c: 7129b12
h: refs/heads/master
i:
  83485: f61b858
  83483: b8d9650
  83479: ee3f81f
  83471: c9cb9c3
  83455: f3ddd42
v: v3
  • Loading branch information
David Fries authored and Linus Torvalds committed Feb 6, 2008
1 parent f005fc8 commit 6c5945e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 35841f708070bd295a96f6c98e566f8b251c1b48
refs/heads/master: 7129b126cc64f530d793bd56eb1709a06ec65a2d
3 changes: 2 additions & 1 deletion trunk/drivers/w1/slaves/w1_therm.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ struct w1_therm_family_converter
int (*convert)(u8 rom[9]);
};

/* The return value is millidegrees Centigrade. */
static inline int w1_DS18B20_convert_temp(u8 rom[9]);
static inline int w1_DS18S20_convert_temp(u8 rom[9]);

Expand All @@ -113,7 +114,7 @@ static struct w1_therm_family_converter w1_therm_families[] = {
static inline int w1_DS18B20_convert_temp(u8 rom[9])
{
s16 t = (rom[1] << 8) | rom[0];
t /= 16;
t = t*1000/16;
return t;
}

Expand Down

0 comments on commit 6c5945e

Please sign in to comment.