Skip to contentSkip to conversation

regmap: Users of REGMAP should imply the needed support

PATCH In review Andrew Davis 2 participants 3 messages Nov 11 – Nov 12

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

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.

---
 drivers/base/regmap/Kconfig | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
drivers/base/regmap/Kconfig +15 -1
index 3c76a5bf67b7e..ef5fdd1ed6c7e 100644
@@ -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
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 regmap: Remove no longer needed help text

User help text was added when this symbol got a user selection string, that string was since removed but the help text was not. Do that here.

---
 drivers/base/regmap/Kconfig | 8 --------
 1 file changed, 8 deletions(-)
drivers/base/regmap/Kconfig +0 -8
index ef5fdd1ed6c7e..a26bd6ce00de5 100644
@@ -5,14 +5,6 @@
 
 config REGMAP
 	bool
-	help
-	  Enable support for the Register Map (regmap) access API.
-
-	  Usually, this option is automatically selected when needed.
-	  However, you may want to enable it manually for running the regmap
-	  KUnit tests.
-
-	  If unsure, say N.
 
 config REGMAP_KUNIT
 	tristate "KUnit tests for regmap"
Signature · 1 line
2.43.0
maintainer
#2 lore raw
In reply to Andrew Davis
Quoted 1 line · Andrew Davis

regmap: Users of REGMAP should imply the needed support

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-7.5

Thanks!

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

      https://git.kernel.org/broonie/regmap/c/613e9c853ac7
[2/2] regmap: Remove no longer needed help text
      https://git.kernel.org/broonie/regmap/c/5e7cf616191e

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark