Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10590
b: refs/heads/master
c: 088341b
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent a10c481 commit 7ea20a1
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: c7461a6652f40ce4f8e19d7368c7a807a618fb68
refs/heads/master: 088341bd0c78143bf82ff21f7f0a715f99568c73
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/via686a.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static inline u8 FAN_TO_REG(long rpm, int div)
but the function is very linear in the useful range (0-80 deg C), so
we'll just use linear interpolation for 10-bit readings.) So, tempLUT
is the temp at via register values 0-255: */
static const long tempLUT[] =
static const s16 tempLUT[] =
{ -709, -688, -667, -646, -627, -607, -589, -570, -553, -536, -519,
-503, -487, -471, -456, -442, -428, -414, -400, -387, -375,
-362, -350, -339, -327, -316, -305, -295, -285, -275, -265,
Expand Down Expand Up @@ -270,7 +270,7 @@ static inline u8 TEMP_TO_REG(long val)
}

/* for 8-bit temperature hyst and over registers */
#define TEMP_FROM_REG(val) (tempLUT[(val)] * 100)
#define TEMP_FROM_REG(val) ((long)tempLUT[val] * 100)

/* for 10-bit temperature readings */
static inline long TEMP_FROM_REG10(u16 val)
Expand Down

0 comments on commit 7ea20a1

Please sign in to comment.