]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.12/0034-hwmon-w83627ehf-Fix-writing-into-fan_stop_time-for-N.patch
linux-ti33x-psp 3.2: update to 3.2.13
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.12 / 0034-hwmon-w83627ehf-Fix-writing-into-fan_stop_time-for-N.patch
1 From 0cf88be2891cd60ef2f132c0eb55cb5334b6439d Mon Sep 17 00:00:00 2001
2 From: Guenter Roeck <linux@roeck-us.net>
3 Date: Mon, 12 Mar 2012 08:21:16 -0700
4 Subject: [PATCH 34/42] hwmon: (w83627ehf) Fix writing into fan_stop_time for
5  NCT6775F/NCT6776F
7 commit 33fa9b620409edfc71aa6cf01a51f990fbe46ab8 upstream.
9 NCT6775F and NCT6776F have their own set of registers for FAN_STOP_TIME. The
10 correct registers were used to read FAN_STOP_TIME, but writes used the wrong
11 registers. Fix it.
13 Signed-off-by: Guenter Roeck <linux@roeck-us.net>
14 Acked-by: Jean Delvare <khali@linux-fr.org>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17  drivers/hwmon/w83627ehf.c |    2 +-
18  1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
21 index c25387d..7a44a56 100644
22 --- a/drivers/hwmon/w83627ehf.c
23 +++ b/drivers/hwmon/w83627ehf.c
24 @@ -1607,7 +1607,7 @@ store_##reg(struct device *dev, struct device_attribute *attr, \
25         val = step_time_to_reg(val, data->pwm_mode[nr]); \
26         mutex_lock(&data->update_lock); \
27         data->reg[nr] = val; \
28 -       w83627ehf_write_value(data, W83627EHF_REG_##REG[nr], val); \
29 +       w83627ehf_write_value(data, data->REG_##REG[nr], val); \
30         mutex_unlock(&data->update_lock); \
31         return count; \
32  } \
33 -- 
34 1.7.9.4