summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2011-03-21 17:59:36 +0100
committerJean Delvare <khali@endymion.delvare>2011-03-21 17:59:36 +0100
commite76f67b5babc65cd620d395a1fd231409808df90 (patch)
treea5af03c47fd02f83e1a35f75a4efaf1a1f6fe5b6 /drivers/hwmon/Kconfig
parent05e82fe40faee8499b4e3ba12fddaaf013d84203 (diff)
downloadop-kernel-dev-e76f67b5babc65cd620d395a1fd231409808df90.zip
op-kernel-dev-e76f67b5babc65cd620d395a1fd231409808df90.tar.gz
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 <khali@linux-fr.org> Cc: Len Sorensen <lsorense@csclub.uwaterloo.ca> Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud