From: David Heidelberg <[email protected]>

The max77705 uses devm_regmap_add_irq_chip(), so add REGMAP_IRQ
and REGMAP_I2C to what the core driver selects in order to provide
thise APIs.
This fixes a build error:

drivers/mfd/max77705.o: in function `max77705_i2c_probe':
max77705.c:(.text+0x250): undefined reference to `devm_regmap_add_irq_chip'

Cc: [email protected]
Fixes: c8d50f029748 ("mfd: Add new driver for MAX77705 PMIC")
Signed-off-by: David Heidelberg <[email protected]>
---
 drivers/mfd/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index e4fd4572472f9..857ca3bb0d5bf 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1001,16 +1001,18 @@ config MFD_MAX77693
          additional drivers must be enabled in order to use the functionality
          of the device.
 
 config MFD_MAX77705
        tristate "Maxim MAX77705 PMIC Support"
        depends on I2C
        select MFD_CORE
        select MFD_SIMPLE_MFD_I2C
+       select REGMAP_I2C
+       select REGMAP_IRQ
        help
          Say yes here to add support for Maxim Integrated MAX77705 PMIC.
          This is a Power Management IC with Charger, safe LDOs, Flash, Haptic
          and MUIC controls on chip.
          This driver provides common support for accessing the device;
          additional drivers must be enabled in order to use the functionality
          of the device.
 

---
base-commit: 7079a12d7506b07fb53b54a664bfad5fa9b16d70
change-id: 20260827-deps-reg-max77705-0835a9089776

Best regards,
--  
David Heidelberg <[email protected]>



Reply via email to