summaryrefslogtreecommitdiff
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-06-20 19:55:46 +0300
committerGuenter Roeck <linux@roeck-us.net>2016-07-13 00:24:14 +0300
commit28a340db9043f11dfd092c1b8ea4043f59cc0ca1 (patch)
tree01889c6f36fc6fa9537f7cc6bc4c4484ca983714 /drivers/hwmon/Kconfig
parenta9f92ccf334f7e15124193b1d7b89b7e6e6624e2 (diff)
downloadlinux-28a340db9043f11dfd092c1b8ea4043f59cc0ca1.tar.xz
hwmon: (tmp102) Convert to use regmap, and drop local cache
By converting the driver to regmap, we can use regmap to cache non-volatile registers. Stop caching the temperature register; while potentially reading it more often can result in reading it more often than necessary, this is offset by the gain due to not re-reading the limit registers. A positive side effect of this change is that limit registers can now be read and updated before the first temperature conversion is complete. Acked-by: Nishanth Menon <nm@ti.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/Kconfig')
-rw-r--r--drivers/hwmon/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index f271353b4b55..e72cd3d33d4e 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1561,6 +1561,7 @@ config SENSORS_TMP102
tristate "Texas Instruments TMP102"
depends on I2C
depends on THERMAL || !THERMAL_OF
+ select REGMAP_I2C
help
If you say yes here you get support for Texas Instruments TMP102
sensor chips.