]> git.baikalelectronics.ru Git - kernel.git/commit
adt7470: observe the number of temperature sensors to shorten update time
authorDarrick J. Wong <djwong@us.ibm.com>
Tue, 6 Jan 2009 22:41:33 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:18 +0000 (15:59 -0800)
commit63813006bc50d317bc2d8eea5a08de96ac87fba3
tree202dd8881df451ceba4be0aa43169049fa58a9eb
parent279e1061777f6ddcc76ffa9f4c4a3f6d62bd2279
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>
drivers/hwmon/adt7470.c