From: Arnd Bergmann <arnd@arndb.de>
To: linux-arm-kernel@lists.infradead.org
Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, wens@csie.org,
broonie@kernel.org, Peter Robinson <pbrobinson@gmail.com>,
maxime.ripard@free-electrons.com
Subject: Re: [PATCH] ASoC: sunxi: depend on ARCH_SUNXI
Date: Mon, 22 Aug 2016 16:49:11 +0200 [thread overview]
Message-ID: <2008659.grltYsYuN0@wuerfel> (raw)
In-Reply-To: <20160822121242.18827-1-pbrobinson@gmail.com>
On Monday, August 22, 2016 1:12:42 PM CEST Peter Robinson wrote:
> Depend on ARCH_SUNXI or COMPILE_TEST as it doesn't make sense to enable
> these if the appropriate SoC they're embedded in isn't enabled.
>
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
> sound/soc/sunxi/Kconfig | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/sunxi/Kconfig b/sound/soc/sunxi/Kconfig
> index 2a954bd..a2b62dc5 100644
> --- a/sound/soc/sunxi/Kconfig
> +++ b/sound/soc/sunxi/Kconfig
> @@ -2,6 +2,7 @@ menu "Allwinner SoC Audio support"
>
> config SND_SUN4I_CODEC
> tristate "Allwinner A10 Codec Support"
> + depends on ARCH_SUNXI || COMPILE_TEST
> select SND_SOC_GENERIC_DMAENGINE_PCM
> select REGMAP_MMIO
>
Makes sense, though I think it's nicer to add the dependency to the entire
menu, so we hide that as well, and don't have to add the line to future
entries:
diff --git a/sound/soc/sunxi/Kconfig b/sound/soc/sunxi/Kconfig
index 2a954bd01fd8..dd2368297fd3 100644
--- a/sound/soc/sunxi/Kconfig
+++ b/sound/soc/sunxi/Kconfig
@@ -1,4 +1,5 @@
menu "Allwinner SoC Audio support"
+ depends on ARCH_SUNXI || COMPILE_TEST
config SND_SUN4I_CODEC
tristate "Allwinner A10 Codec Support"
Either way
Acked-by: Arnd Bergmann <arnd@arndb.de>
next prev parent reply other threads:[~2016-08-22 14:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 12:12 [PATCH] ASoC: sunxi: depend on ARCH_SUNXI Peter Robinson
2016-08-22 14:04 ` Maxime Ripard
2016-08-22 14:49 ` Arnd Bergmann [this message]
2016-08-22 17:41 ` Mark Brown
2016-08-23 8:34 ` Peter Robinson
2016-08-24 11:20 ` Applied "ASoC: sunxi: depend on ARCH_SUNXI" to the asoc tree Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2016-08-23 17:17 [PATCH] ASoC: sunxi: depend on ARCH_SUNXI Peter Robinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2008659.grltYsYuN0@wuerfel \
--to=arnd@arndb.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maxime.ripard@free-electrons.com \
--cc=pbrobinson@gmail.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).