[PATCH v2] regmap: Enable REGMAP when REGMAP_SLIMBUS is enabled

From: Geert Uytterhoeven

Date: Thu Jan 15 2026 - 11:24:07 EST


From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Invisible symbol REGMAP defaults to y when any of the REGMAP_* symbols
is enabled, effectively auto-enabling it when needed. However,
REGMAP_SLIMBUS is missing from the list.

Currently this does not cause any issues, as all symbols selecting
REGMAP_SLIMBUS also select REGMAP and/or REGMAP_IRQ. Add REGMAP_SLIMBUS
to the list for consistency, and to prevent any future issues.

Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
This is v2 of "[PATCH 2/3] regmap: REGMAP_SLIMBUS should select REGMAP"
https://lore.kernel.org/7519324a34015e1c046227269409fef688889f4f.1688643442.git.geert@xxxxxxxxxxxxxx/

v2:
- Change the default of REGMAP instead of selecting it,
- Drop mfd change.
---
drivers/base/regmap/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig
index ffb2ef488298191a..06d7eb2aac145562 100644
--- a/drivers/base/regmap/Kconfig
+++ b/drivers/base/regmap/Kconfig
@@ -5,7 +5,7 @@

config REGMAP
bool
- default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ || REGMAP_SOUNDWIRE || REGMAP_SOUNDWIRE_MBQ || REGMAP_SCCB || REGMAP_I3C || REGMAP_SPI_AVMM || REGMAP_MDIO || REGMAP_FSI)
+ default y if (REGMAP_I2C || REGMAP_SLIMBUS || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ || REGMAP_SOUNDWIRE || REGMAP_SOUNDWIRE_MBQ || REGMAP_SCCB || REGMAP_I3C || REGMAP_SPI_AVMM || REGMAP_MDIO || REGMAP_FSI)
help
Enable support for the Register Map (regmap) access API.

--
2.43.0