diff mbox series

ASoC: cs47l15: Ensure regmap_irq is built

Message ID 20220202191700.3654382-1-broonie@kernel.org
State New
Headers show
Series ASoC: cs47l15: Ensure regmap_irq is built | expand

Commit Message

Mark Brown Feb. 2, 2022, 7:17 p.m. UTC
The cs47l15 driver uses regmap_irq but does not ensure that it is built,
causing build failures if nothing else being build requires the helpers.
Add the appropriate select.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Charles Keepax Feb. 3, 2022, 10:05 a.m. UTC | #1
On Wed, Feb 02, 2022 at 07:17:00PM +0000, Mark Brown wrote:
> The cs47l15 driver uses regmap_irq but does not ensure that it is built,
> causing build failures if nothing else being build requires the helpers.
> Add the appropriate select.
> 
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
>  sound/soc/codecs/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
> index 2fd21004688c..69fd11b2b046 100644
> --- a/sound/soc/codecs/Kconfig
> +++ b/sound/soc/codecs/Kconfig
> @@ -733,6 +733,7 @@ config SND_SOC_CS4349
>  
>  config SND_SOC_CS47L15
>  	tristate
> +	select REGMAP_IRQ
>  

Would it be better to have depends on MFD_CS47L15 instead,
that way the other dependencies would be covered as well? I think
these were added before implies was a thing, and thus
dependencies didn't matter, since they could only be selected
which ignored deps anyway.

I would expect L35, L85, L90, L92 to be affected as well. Happy
to do a patch to fix this up, if you prefer?

Thanks,
Charles
diff mbox series

Patch

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 2fd21004688c..69fd11b2b046 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -733,6 +733,7 @@  config SND_SOC_CS4349
 
 config SND_SOC_CS47L15
 	tristate
+	select REGMAP_IRQ
 
 config SND_SOC_CS47L24
 	tristate