From: Jean Delvare Date: Mon, 28 Aug 2006 12:27:25 +0000 (+0200) Subject: it87: in8 has no limit registers X-Git-Tag: v2.6.19-rc1~860^2~30 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3543a53f6c5b58c233218327f671108590151876;p=linux-2.6 it87: in8 has no limit registers it87: in8 has no limit registers Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index fc75fcb6bf..bfad8975d1 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -220,8 +220,8 @@ struct it87_data { unsigned long last_updated; /* In jiffies */ u8 in[9]; /* Register value */ - u8 in_max[9]; /* Register value */ - u8 in_min[9]; /* Register value */ + u8 in_max[8]; /* Register value */ + u8 in_min[8]; /* Register value */ u8 has_fan; /* Bitfield, fans enabled */ u16 fan[3]; /* Register values, possibly combined */ u16 fan_min[3]; /* Register values, possibly combined */ @@ -1251,12 +1251,9 @@ static struct it87_data *it87_update_device(struct device *dev) data->in_max[i] = it87_read_value(client, IT87_REG_VIN_MAX(i)); } + /* in8 (battery) has no limit registers */ data->in[8] = it87_read_value(client, IT87_REG_VIN(8)); - /* Temperature sensor doesn't have limit registers, set - to min and max value */ - data->in_min[8] = 0; - data->in_max[8] = 255; for (i = 0; i < 3; i++) { /* Skip disabled fans */