From: Guenter Roeck Date: Mon, 12 Mar 2012 15:21:16 +0000 (-0700) Subject: hwmon: (w83627ehf) Fix writing into fan_stop_time for NCT6775F/NCT6776F X-Git-Tag: v3.2.12~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5f418b22bacdbae9f607be8951266c5a6c2aca86;p=karo-tx-linux.git hwmon: (w83627ehf) Fix writing into fan_stop_time for NCT6775F/NCT6776F commit 33fa9b620409edfc71aa6cf01a51f990fbe46ab8 upstream. 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 Acked-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index c25387d5f746..7a44a567fb0b 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c @@ -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; \ } \