提交 393cdad6 编写于 作者: M Mark M. Hoffman

hwmon: fix w83781d temp sensor type setting

Commit 34875337 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: NMark M. Hoffman <mhoffman@lightlink.com>
上级 ac078602
...@@ -740,9 +740,9 @@ store_sensor(struct device *dev, struct device_attribute *da, ...@@ -740,9 +740,9 @@ store_sensor(struct device *dev, struct device_attribute *da,
static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO | S_IWUSR, static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO | S_IWUSR,
show_sensor, store_sensor, 0); show_sensor, store_sensor, 0);
static SENSOR_DEVICE_ATTR(temp2_type, S_IRUGO | S_IWUSR, 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, 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 /* I2C devices get this name attribute automatically, but for ISA devices
we must create it by ourselves. */ we must create it by ourselves. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册