summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adm1029.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-03-12 10:38:45 (GMT)
committerGuenter Roeck <linux@roeck-us.net>2013-04-08 04:16:38 (GMT)
commitc55dc91e92bdf21427dd8f5ad779ed9d63caacbd (patch)
treeadcf4aa5fbd1a7cb8d3655ad0a37f4dd161c3035 /drivers/hwmon/adm1029.c
parentf40fb63e923ccc8c280f8451d4909bb8607a1a8f (diff)
downloadlinux-fsl-qoriq-c55dc91e92bdf21427dd8f5ad779ed9d63caacbd.tar.xz
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/adm1029.c')
0 files changed, 0 insertions, 0 deletions