summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorLars-Peter Clausen2013-03-12 11:38:45 +0100
committerGuenter Roeck2013-04-08 06:16:38 +0200
commitc55dc91e92bdf21427dd8f5ad779ed9d63caacbd (patch)
treeadcf4aa5fbd1a7cb8d3655ad0a37f4dd161c3035 /drivers/hwmon/Kconfig
parenthwmon: (mc13783-adc.c) use module_platform_driver_probe() (diff)
downloadkernel-qcow2-linux-c55dc91e92bdf21427dd8f5ad779ed9d63caacbd.tar.gz
kernel-qcow2-linux-c55dc91e92bdf21427dd8f5ad779ed9d63caacbd.tar.xz
kernel-qcow2-linux-c55dc91e92bdf21427dd8f5ad779ed9d63caacbd.zip
hwmon: (adt7410) Don't re-read non-volatile registers
Currently each time the temperature register is read the driver also reads the threshold and hysteresis registers. This increases the amount of I2C traffic and time needed to read the temperature by a factor of ~5. Neither the threshold nor the hysteresis change on their own, so once we have read them, we should be able to just use the cached value of the registers. This patch modifies the code accordingly and only reads the threshold and hysteresis registers once during probe. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/Kconfig')
0 files changed, 0 insertions, 0 deletions