diff options
author | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-08-09 08:12:46 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-08-11 14:22:57 -0400 |
commit | 393cdad6267bc2abf75973d15310168ff3e15441 (patch) | |
tree | 4b6bfa114337d02ca16c1f3c51930edd30db58c9 /drivers/hwmon | |
parent | ac07860264bd2b18834d3fa3be47032115524cea (diff) | |
download | linux-393cdad6267bc2abf75973d15310168ff3e15441.tar.gz linux-393cdad6267bc2abf75973d15310168ff3e15441.tar.bz2 linux-393cdad6267bc2abf75973d15310168ff3e15441.zip |
hwmon: fix w83781d temp sensor type setting
Commit 348753379a7704087603dad403603e825422fd9a introduced a regression that
caused temp2 and temp3 sensor type settings to be written to temp1 instead.
The result is that temp sensor readings could be way off.
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/w83781d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index f85b48fea1c4..c95909cc1d21 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c @@ -740,9 +740,9 @@ store_sensor(struct device *dev, struct device_attribute *da, static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO | S_IWUSR, show_sensor, store_sensor, 0); static SENSOR_DEVICE_ATTR(temp2_type, S_IRUGO | S_IWUSR, - show_sensor, store_sensor, 0); + show_sensor, store_sensor, 1); static SENSOR_DEVICE_ATTR(temp3_type, S_IRUGO | S_IWUSR, - show_sensor, store_sensor, 0); + show_sensor, store_sensor, 2); /* I2C devices get this name attribute automatically, but for ISA devices we must create it by ourselves. */ |