diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-08-28 08:27:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-28 18:31:13 -0400 |
commit | 3543a53f6c5b58c233218327f671108590151876 (patch) | |
tree | a717e76ae3167add861b785f1c5f187871087157 /drivers | |
parent | b9e349f710376ef55f200e9fa07e88b4fe2cdf98 (diff) |
it87: in8 has no limit registers
it87: in8 has no limit registers
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/it87.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index fc75fcb6bffd..bfad8975d1e5 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -220,8 +220,8 @@ struct it87_data { | |||
220 | unsigned long last_updated; /* In jiffies */ | 220 | unsigned long last_updated; /* In jiffies */ |
221 | 221 | ||
222 | u8 in[9]; /* Register value */ | 222 | u8 in[9]; /* Register value */ |
223 | u8 in_max[9]; /* Register value */ | 223 | u8 in_max[8]; /* Register value */ |
224 | u8 in_min[9]; /* Register value */ | 224 | u8 in_min[8]; /* Register value */ |
225 | u8 has_fan; /* Bitfield, fans enabled */ | 225 | u8 has_fan; /* Bitfield, fans enabled */ |
226 | u16 fan[3]; /* Register values, possibly combined */ | 226 | u16 fan[3]; /* Register values, possibly combined */ |
227 | u16 fan_min[3]; /* Register values, possibly combined */ | 227 | u16 fan_min[3]; /* Register values, possibly combined */ |
@@ -1251,12 +1251,9 @@ static struct it87_data *it87_update_device(struct device *dev) | |||
1251 | data->in_max[i] = | 1251 | data->in_max[i] = |
1252 | it87_read_value(client, IT87_REG_VIN_MAX(i)); | 1252 | it87_read_value(client, IT87_REG_VIN_MAX(i)); |
1253 | } | 1253 | } |
1254 | /* in8 (battery) has no limit registers */ | ||
1254 | data->in[8] = | 1255 | data->in[8] = |
1255 | it87_read_value(client, IT87_REG_VIN(8)); | 1256 | it87_read_value(client, IT87_REG_VIN(8)); |
1256 | /* Temperature sensor doesn't have limit registers, set | ||
1257 | to min and max value */ | ||
1258 | data->in_min[8] = 0; | ||
1259 | data->in_max[8] = 255; | ||
1260 | 1257 | ||
1261 | for (i = 0; i < 3; i++) { | 1258 | for (i = 0; i < 3; i++) { |
1262 | /* Skip disabled fans */ | 1259 | /* Skip disabled fans */ |