[PATCH 4/4] hwmon: (max1668) Add missing dependency on REGMAP_I2C

Javier Carrasco posted 4 patches 1 month, 3 weeks ago
[PATCH 4/4] hwmon: (max1668) Add missing dependency on REGMAP_I2C
Posted by Javier Carrasco 1 month, 3 weeks ago
This driver requires REGMAP_I2C to be selected in order to get access to
regmap_config, regmap_bus, and devm_regmap_init_i2c.
Add the missing dependency.

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

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 5152c71402ca..92d051dba52f 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1149,6 +1149,7 @@ config SENSORS_MAX1619
 config SENSORS_MAX1668
 	tristate "Maxim MAX1668 and compatibles"
 	depends on I2C
+	select REGMAP_I2C
 	help
 	  If you say yes here you get support for MAX1668, MAX1989 and
 	  MAX1805 chips.

-- 
2.43.0
Re: [PATCH 4/4] hwmon: (max1668) Add missing dependency on REGMAP_I2C
Posted by Guenter Roeck 1 month, 3 weeks ago
On Wed, Oct 02, 2024 at 03:08:11AM +0200, Javier Carrasco wrote:
> This driver requires REGMAP_I2C to be selected in order to get access to
> regmap_config, regmap_bus, and devm_regmap_init_i2c.
> Add the missing dependency.
> 
> Fixes: 021730acbca6 ("hwmon: (max1668) Convert to use regmap")
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>

Applied.

Thanks,
Guenter