summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2009-01-06 23:41:33 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-07 00:59:18 +0100
commit2f22d5dff6f95d777c4cb217b99bfdf1fe306128 (patch)
tree202dd8881df451ceba4be0aa43169049fa58a9eb /drivers/macintosh
parentadt7470: fix pwm at a certain level during temperature sensor scan (diff)
downloadlinux-2f22d5dff6f95d777c4cb217b99bfdf1fe306128.tar.xz
linux-2f22d5dff6f95d777c4cb217b99bfdf1fe306128.zip
adt7470: observe the number of temperature sensors to shorten update time
The adt7470 driver currently assumes that 1s is the proper time to wait to read all temperature sensors. However, the correct time is 200ms * number_of_sensors. This patch sets the default time to provide for 10 sensors and then lowers it based on the number of sensor inputs that have nozero values. 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>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions