Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20007
b: refs/heads/master
c: 413b645
h: refs/heads/master
i:
  20005: 9dedf34
  20003: 1dfdd80
  19999: b3bcbb8
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Feb 6, 2006
1 parent 230b249 commit 1212494
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 21bbd691827e3610ef975a88863859381ac8d8e0
refs/heads/master: 413b64515079a4063776d81067f69cc41bdb34ad
8 changes: 4 additions & 4 deletions trunk/drivers/hwmon/lm77.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ static struct i2c_driver lm77_driver = {

/* In the temperature registers, the low 3 bits are not part of the
temperature values; they are the status bits. */
static inline u16 LM77_TEMP_TO_REG(int temp)
static inline s16 LM77_TEMP_TO_REG(int temp)
{
int ntemp = SENSORS_LIMIT(temp, LM77_TEMP_MIN, LM77_TEMP_MAX);
return (u16)((ntemp / 500) * 8);
return (ntemp / 500) * 8;
}

static inline int LM77_TEMP_FROM_REG(u16 reg)
static inline int LM77_TEMP_FROM_REG(s16 reg)
{
return ((int)reg / 8) * 500;
return (reg / 8) * 500;
}

/* sysfs stuff */
Expand Down

0 comments on commit 1212494

Please sign in to comment.