[PATCH 1/2] regmap: Users of REGMAP should imply the needed support

From: Andrew Davis

Date: Wed Nov 11 2026 - 18:46:35 EST


This has the same effect but makes it easier to see each that each
config symbol is enabling REGMAP and avoids a really long line here.

Signed-off-by: Andrew Davis <afd@xxxxxx>
---
drivers/base/regmap/Kconfig | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig
index 3c76a5bf67b7e..ef5fdd1ed6c7e 100644
--- a/drivers/base/regmap/Kconfig
+++ b/drivers/base/regmap/Kconfig
@@ -5,7 +5,6 @@

config REGMAP
bool
- 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.

@@ -33,37 +32,46 @@ config REGMAP_BUILD

config REGMAP_AC97
tristate
+ imply REGMAP

config REGMAP_I2C
tristate
depends on I2C
+ imply REGMAP

config REGMAP_SLIMBUS
tristate
depends on SLIMBUS
+ imply REGMAP

config REGMAP_SPI
tristate
depends on SPI
+ imply REGMAP

config REGMAP_SPMI
tristate
depends on SPMI
+ imply REGMAP

config REGMAP_W1
tristate
depends on W1
+ imply REGMAP

config REGMAP_MDIO
tristate
depends on PHYLIB
+ imply REGMAP

config REGMAP_MMIO
tristate
+ imply REGMAP

config REGMAP_IRQ
bool
select IRQ_DOMAIN
+ imply REGMAP

config REGMAP_RAM
tristate
@@ -71,23 +79,29 @@ config REGMAP_RAM
config REGMAP_SOUNDWIRE
tristate
depends on SOUNDWIRE
+ imply REGMAP

config REGMAP_SOUNDWIRE_MBQ
tristate
depends on SOUNDWIRE
+ imply REGMAP

config REGMAP_SCCB
tristate
depends on I2C
+ imply REGMAP

config REGMAP_I3C
tristate
depends on I3C
+ imply REGMAP

config REGMAP_SPI_AVMM
tristate
depends on SPI
+ imply REGMAP

config REGMAP_FSI
tristate
depends on FSI
+ imply REGMAP
--
2.43.0