hwmon: (adt7470) Add missing dependency on REGMAP_I2C

[ Upstream commit b6abcc19566509ab4812bd5ae5df46515d0c1d70 ]

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: ef67959c42 ("hwmon: (adt7470) Convert to use regmap")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Message-ID: <20241002-hwmon-select-regmap-v1-2-548d03268934@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Javier Carrasco 2024-10-02 03:08:09 +02:00 committed by Greg Kroah-Hartman
parent 3287c0a8d7
commit 9fae1a346f

View File

@ -228,6 +228,7 @@ config SENSORS_ADT7462
config SENSORS_ADT7470 config SENSORS_ADT7470
tristate "Analog Devices ADT7470" tristate "Analog Devices ADT7470"
depends on I2C depends on I2C
select REGMAP_I2C
help help
If you say yes here you get support for the Analog Devices If you say yes here you get support for the Analog Devices
ADT7470 temperature monitoring chips. ADT7470 temperature monitoring chips.