diff mbox series

[1/4] hwmon: (adm9240) Add missing dependency on REGMAP_I2C

Message ID 20241002-hwmon-select-regmap-v1-1-548d03268934@gmail.com (mailing list archive)
State Accepted
Headers show
Series hwmon: add missing REGMAP_I2C dependencies | expand

Commit Message

Javier Carrasco Oct. 2, 2024, 1:08 a.m. UTC
This driver requires REGMAP_I2C to be selected in order to get access to
regmap_config and devm_regmap_init_i2c. Add the missing dependency.

Fixes: df885d912f67 ("hwmon: (adm9240) Convert to regmap")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 drivers/hwmon/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Guenter Roeck Oct. 2, 2024, 1:55 p.m. UTC | #1
On Wed, Oct 02, 2024 at 03:08:08AM +0200, Javier Carrasco wrote:
> This driver requires REGMAP_I2C to be selected in order to get access to
> regmap_config and devm_regmap_init_i2c. Add the missing dependency.
> 
> Fixes: df885d912f67 ("hwmon: (adm9240) Convert to regmap")
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>

Applied.

Thanks,
Guenter
diff mbox series

Patch

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index ecf09cd2510c..f47f6a28d1c7 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -162,6 +162,7 @@  config SENSORS_ADM9240
 	tristate "Analog Devices ADM9240 and compatibles"
 	depends on I2C
 	select HWMON_VID
+	select REGMAP_I2C
 	help
 	  If you say yes here you get support for Analog Devices ADM9240,
 	  Dallas DS1780, National Semiconductor LM81 sensor chips.