From 121249445c33f5f4aa76b53b5a5b0adcf815d100 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 9 Jan 2006 22:43:08 +0100 Subject: [PATCH] --- yaml --- r: 20007 b: refs/heads/master c: 413b64515079a4063776d81067f69cc41bdb34ad h: refs/heads/master i: 20005: 9dedf346111d2933a8c00c2486e4bb87e8b48494 20003: 1dfdd80729c87455b28aeca41ab68d000db3610d 19999: b3bcbb81740de4aaa9ba01c1c87212141951cd3a v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/lm77.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index d973c5365602..04c54422156f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 21bbd691827e3610ef975a88863859381ac8d8e0 +refs/heads/master: 413b64515079a4063776d81067f69cc41bdb34ad diff --git a/trunk/drivers/hwmon/lm77.c b/trunk/drivers/hwmon/lm77.c index a2f420d01fb7..df9e02aaa70a 100644 --- a/trunk/drivers/hwmon/lm77.c +++ b/trunk/drivers/hwmon/lm77.c @@ -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 */