adt7470: fix pwm at a certain level during temperature sensor scan
authorDarrick J. Wong <djwong@us.ibm.com>
Tue, 6 Jan 2009 22:41:32 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:18 +0000 (15:59 -0800)
commit2e75a4b7ae0dd4bf7b34e41c2c3be7ac23b8f1cc
tree3adaaa6a78b2d11b7648a93956c10a0968abd09c
parent8f8c1fb0c829278b889588da211a5a557518b06c
adt7470: fix pwm at a certain level during temperature sensor scan

In the small window that it takes to read the temperature sensors, the pwm
outputs momentarily drop to 0.  This causes a noticeable hiccup in fan
speed, which is slightly annoying.  The solution is to manually program
the pwm output with whatever the automatic value is and then shift the
fans to manual control while reading temperatures.  Once that is done, put
the fans back to whatever mode of control was there before.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/adt7470.c