diff mbox series

hwmon: (w83773g) Select REGMAP_I2C to fix build error

Message ID 20190311095730.3288-1-axel.lin@ingics.com (mailing list archive)
State Accepted
Headers show
Series hwmon: (w83773g) Select REGMAP_I2C to fix build error | expand

Commit Message

Axel Lin March 11, 2019, 9:57 a.m. UTC
Select REGMAP_I2C to avoid below build error:
ERROR: "__devm_regmap_init_i2c" [drivers/hwmon/w83773g.ko] undefined!

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/hwmon/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Guenter Roeck March 11, 2019, 1:12 p.m. UTC | #1
On Mon, Mar 11, 2019 at 05:57:30PM +0800, Axel Lin wrote:
> Select REGMAP_I2C to avoid below build error:
> ERROR: "__devm_regmap_init_i2c" [drivers/hwmon/w83773g.ko] undefined!
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index 6f929bfa9fcd..d0f1dfe2bcbb 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -1759,6 +1759,7 @@ config SENSORS_VT8231
>  config SENSORS_W83773G
>  	tristate "Nuvoton W83773G"
>  	depends on I2C
> +	select REGMAP_I2C
>  	help
>  	  If you say yes here you get support for the Nuvoton W83773G hardware
>  	  monitoring chip.
diff mbox series

Patch

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 6f929bfa9fcd..d0f1dfe2bcbb 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1759,6 +1759,7 @@  config SENSORS_VT8231
 config SENSORS_W83773G
 	tristate "Nuvoton W83773G"
 	depends on I2C
+	select REGMAP_I2C
 	help
 	  If you say yes here you get support for the Nuvoton W83773G hardware
 	  monitoring chip.