iio: dac: mcp47feb02: add missing 'select REGMAP_I2C' to Kconfig
Subsystems (2)
PATCH 1/1 iio: dac: mcp47feb02: add missing 'select REGMAP_I2C' to Kconfig
The Kconfig entry for the MCP47FEB02 is missing a 'select REGMAP_I2C', causing build failures.
---
This patch adds a missing 'select REGMAP_I2C' to the MCP47FEB02 Kconfig entry. Without this, some builds may result in a failure.
Steps to reproduce build failure:
1. Run make allnoconfig.
2. Run make menuconfig and select I2C, IIO and the MCP47FEB02 driver.
3. Run make . and make will end with regmap-related errors.
An excerpt of the errors produced during the above build:drivers/iio/dac/mcp47feb02.c: In function ‘mcp47feb02_probe’:drivers/iio/dac/mcp47feb02.c:1114:32: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Wimplicit-function-declaration]
1114 | data->regmap = devm_regmap_init_i2c(client, &mcp47feb02_regmap_config);
| ^~~~~~~~~~~~~~~~~~~~
drivers/iio/dac/mcp47feb02.c:1114:30: error: assignment to ‘struct regmap *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1114 | data->regmap = devm_regmap_init_i2c(client, &mcp47feb02_regmap_config);
| ^
---
drivers/iio/dac/Kconfig | 1 +
1 file changed, 1 insertion(+)drivers/iio/dac/Kconfig +1 -0
@@ -552,6 +552,7 @@ config MCP4728 config MCP47FEB02 tristate "MCP47F(E/V)B01/02/04/08/11/12/14/18/21/22/24/28 DAC driver" depends on I2C + select REGMAP_I2C help Say yes here if you want to build the driver for the Microchip: - 8-bit DAC:
---
base-commit: fef4337eb2888c758c7058e1723903204f012a26
change-id: 20260708-add-missing-regmap-dac-abcf866aac1f
Best regards,
Signature · 3 lines
Kind regards CJD
Jonathan Cameron
AppliedQuoted 6 lines · On Wed, 08 Jul 2026 21:50:28 +0200 Joshua Crofts <[email protected]>…
The
Kconfigentry for the MCP47FEB02 is missing a 'selectREGMAP_I2C', causing build failures.Fixes bf394cc80369 ("iio: dac: adding support for Microchip MCP47FEB02")Signed-off-by Joshua Crofts <[email protected]>
Applied to the fixes-togreg branch of iio.git
Thanks,
Jonathan