]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
hwmon: (w83627ehf) Fix writing into fan_stop_time for NCT6775F/NCT6776F
authorGuenter Roeck <linux@roeck-us.net>
Mon, 12 Mar 2012 15:21:16 +0000 (08:21 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 12 Mar 2012 17:40:30 +0000 (10:40 -0700)
NCT6775F and NCT6776F have their own set of registers for FAN_STOP_TIME. The
correct registers were used to read FAN_STOP_TIME, but writes used the wrong
registers. Fix it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org # 3.0+
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83627ehf.c

index 5276d1933dbcad8ee3acf29fb5d0f2f3e17b7d4d..dbcdef69f8f32de6415443b6ac13f0c411f64439 100644 (file)
@@ -1607,7 +1607,7 @@ store_##reg(struct device *dev, struct device_attribute *attr, \
        val = step_time_to_reg(val, data->pwm_mode[nr]); \
        mutex_lock(&data->update_lock); \
        data->reg[nr] = val; \
-       w83627ehf_write_value(data, W83627EHF_REG_##REG[nr], val); \
+       w83627ehf_write_value(data, data->REG_##REG[nr], val); \
        mutex_unlock(&data->update_lock); \
        return count; \
 } \