X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fhwmon%2Flm75.h;h=7c93454bb4e3eb4d01e482b2475335aa03aafc7e;hb=4777e4e6b8540ee4226876a737833d03bbc55394;hp=af7dc650ee1506878901453ea51bc75dee764392;hpb=c324b44c34050cf2a9b58830e11c974806bd85d8;p=linux-2.6-omap-h63xx.git diff --git a/drivers/hwmon/lm75.h b/drivers/hwmon/lm75.h index af7dc650ee1..7c93454bb4e 100644 --- a/drivers/hwmon/lm75.h +++ b/drivers/hwmon/lm75.h @@ -33,7 +33,7 @@ /* TEMP: 0.001C/bit (-55C to +125C) REG: (0.5C/bit, two's complement) << 7 */ -static inline u16 LM75_TEMP_TO_REG(int temp) +static inline u16 LM75_TEMP_TO_REG(long temp) { int ntemp = SENSORS_LIMIT(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); ntemp += (ntemp<0 ? -250 : 250);