public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: samsung: Add I2C dependency for snow
@ 2014-06-04  9:40 Arnd Bergmann
  2014-06-04 11:26 ` Tushar Behera
  2014-06-04 15:45 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2014-06-04  9:40 UTC (permalink / raw)
  To: linux-arm-kernel

Both codecs used by snow, max98090 and max98095 require the use
of I2C, so we can only select this driver if I2C is there, otherwise
we get a build error like:

codecs/max98090.c:2494:1: warning: data definition has no type or storage class [enabled by default]
 module_i2c_driver(max98090_i2c_driver);
 ^
codecs/max98095.c:2443:1: warning: data definition has no type or storage class [enabled by default]
 module_i2c_driver(max98095_i2c_driver);
 ^

This adds one more I2C dependency to the hundreds we already
have.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Tushar Behera <tushar.behera@linaro.org>
---
diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig
index a7cb8f6..cb7be4f 100644
--- a/sound/soc/samsung/Kconfig
+++ b/sound/soc/samsung/Kconfig
@@ -232,7 +232,7 @@ config SND_SOC_LITTLEMILL
 
 config SND_SOC_SNOW
 	tristate "Audio support for Google Snow boards"
-	depends on SND_SOC_SAMSUNG
+	depends on SND_SOC_SAMSUNG && I2C
 	select SND_SOC_MAX98090
 	select SND_SOC_MAX98095
 	select SND_SAMSUNG_I2S

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] ASoC: samsung: Add I2C dependency for snow
  2014-06-04  9:40 [PATCH] ASoC: samsung: Add I2C dependency for snow Arnd Bergmann
@ 2014-06-04 11:26 ` Tushar Behera
  2014-06-04 15:45 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Tushar Behera @ 2014-06-04 11:26 UTC (permalink / raw)
  To: linux-arm-kernel

On 4 June 2014 15:10, Arnd Bergmann <arnd@arndb.de> wrote:
> Both codecs used by snow, max98090 and max98095 require the use
> of I2C, so we can only select this driver if I2C is there, otherwise
> we get a build error like:
>
> codecs/max98090.c:2494:1: warning: data definition has no type or storage class [enabled by default]
>  module_i2c_driver(max98090_i2c_driver);
>  ^
> codecs/max98095.c:2443:1: warning: data definition has no type or storage class [enabled by default]
>  module_i2c_driver(max98095_i2c_driver);
>  ^
>
> This adds one more I2C dependency to the hundreds we already
> have.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Cc: Tushar Behera <tushar.behera@linaro.org>

Thanks for the patch. I should have added this dependency while
introducing this config option.

Acked-by: Tushar Behera <tushar.behera@linaro.org>

> ---
> diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig
> index a7cb8f6..cb7be4f 100644
> --- a/sound/soc/samsung/Kconfig
> +++ b/sound/soc/samsung/Kconfig
> @@ -232,7 +232,7 @@ config SND_SOC_LITTLEMILL
>
>  config SND_SOC_SNOW
>         tristate "Audio support for Google Snow boards"
> -       depends on SND_SOC_SAMSUNG
> +       depends on SND_SOC_SAMSUNG && I2C
>         select SND_SOC_MAX98090
>         select SND_SOC_MAX98095
>         select SND_SAMSUNG_I2S
>

-- 
Tushar Behera

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ASoC: samsung: Add I2C dependency for snow
  2014-06-04  9:40 [PATCH] ASoC: samsung: Add I2C dependency for snow Arnd Bergmann
  2014-06-04 11:26 ` Tushar Behera
@ 2014-06-04 15:45 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2014-06-04 15:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Jun 04, 2014 at 11:40:40AM +0200, Arnd Bergmann wrote:
> Both codecs used by snow, max98090 and max98095 require the use
> of I2C, so we can only select this driver if I2C is there, otherwise
> we get a build error like:

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140604/1608efaf/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-04 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04  9:40 [PATCH] ASoC: samsung: Add I2C dependency for snow Arnd Bergmann
2014-06-04 11:26 ` Tushar Behera
2014-06-04 15:45 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox