lm85: Fix setting the fan speed min limit to 0.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4557 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-07-05 20:44:31 +00:00
1 parent b1baa82ddb
commit 90c1efe606
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ static int lm85_scaling[] = { /* .001 Volts */
#define INS_FROM_REG(n,val) (INSEXT_FROM_REG(n,val,0))
/* FAN speed is measured using 90kHz clock */
#define FAN_TO_REG(val) (SENSORS_LIMIT( (val)<=0?0: 5400000/(val),0,65534))
#define FAN_TO_REG(val) ((val)<=0?0xffff:SENSORS_LIMIT(5400000/(val),1,65534))
#define FAN_FROM_REG(val) ((val)==0?-1:(val)==0xffff?0:5400000/(val))
/* Temperature is reported in .01 degC increments */