From: Jean Delvare Date: Mon, 21 Mar 2011 16:59:36 +0000 (+0100) Subject: hwmon: (lm75) Speed up detection X-Git-Tag: v2.6.39-rc1~397^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76f67b5babc65cd620d395a1fd231409808df90;p=pandora-kernel.git hwmon: (lm75) Speed up detection Make the LM75/LM75A device detection faster: * Don't read the current temperature value when we don't use it. * Check for unused bits in the configuration register as soon as we have read its value. * Don't use word reads, not all devices support this, and some which don't misbehave when you try. * Check for cycling register values every 40 register addresses instead of every 8, it's 5 times faster and just as efficient. Some of these improvements come straight from the user-space sensors-detect script, so both detection routines are in line now. Signed-off-by: Jean Delvare Cc: Len Sorensen Acked-by: Guenter Roeck --- Reading git-diff-tree failed