Skip to contentSkip to conversation

hwmon: (tmp513) Fix build issue by selecting CONFIG_REGMAP and CONFIG_REGMAP_I2C

PATCH In review Mike Pagano 2 participants 2 messages Mar 21, 2020 – Mar 22, 2020 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (tmp513) Fix build issue by selecting CONFIG_REGMAP and CONFIG_REGMAP_I2C

This driver requires REGMAP and REGMAP_I2C to build. Select both by default in Kconfig. Reported at gentoo bugzilla: https://bugs.gentoo.org/710790

---
 drivers/hwmon/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/Kconfig +2 -0
index 47ac20aee06f..6edf8522447d 100644
@@ -1769,6 +1769,8 @@ config SENSORS_TMP421
 config SENSORS_TMP513
     tristate "Texas Instruments TMP513 and compatibles"
     depends on I2C
+    select REGMAP
+    select REGMAP_I2C
     help
       If you say yes here you get support for Texas Instruments TMP512,
       and TMP513 temperature and power supply sensor chips.
Signature · 1 line
2.24.1
maintainer
#1 lore raw
Quoted 14 lines · Mike Pagano

This driver requires REGMAP and REGMAP_I2C to build. Select both by default in Kconfig. Reported at gentoo bugzilla: https://bugs.gentoo.org/710790

---
 drivers/hwmon/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/Kconfig +0 -0
index 47ac20aee06f..6edf8522447d 100644

drivers/hwmon/Kconfig config SENSORS_TMP421 · line 1773

Quoted 5 lines
drivers/hwmon/Kconfig +2 -0
@@ -1769,6 +1769,8 @@ config SENSORS_TMP421
 config SENSORS_TMP513
     tristate "Texas Instruments TMP513 and compatibles"
     depends on I2C
+    select REGMAP
+    select REGMAP_I2C

REGMAP is auto-selected by REGMAP_I2C, and can not be (de-)selected on its own. Selecting both is never necessary.

Guenter

Quoted 3 lines
drivers/hwmon/Kconfig +0 -0
     help
       If you say yes here you get support for Texas Instruments TMP512,
       and TMP513 temperature and power supply sensor chips.