summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-06-20 09:55:46 -0700
committerGuenter Roeck <linux@roeck-us.net>2016-07-12 14:24:14 -0700
commit28a340db9043f11dfd092c1b8ea4043f59cc0ca1 (patch)
tree01889c6f36fc6fa9537f7cc6bc4c4484ca983714 /drivers/hwmon/Kconfig
parenta9f92ccf334f7e15124193b1d7b89b7e6e6624e2 (diff)
downloadop-kernel-dev-28a340db9043f11dfd092c1b8ea4043f59cc0ca1.zip
op-kernel-dev-28a340db9043f11dfd092c1b8ea4043f59cc0ca1.tar.gz
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 f271353..e72cd3d 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.
OpenPOWER on IntegriCloud