[alsa-devel] [PATCH] ASoC: Remove conditional I2C usage from tlv320aic3x driver

Jarkko Nikula jarkko.nikula at bitmer.com
Tue Nov 22 09:06:44 CET 2011


On Mon, 2011-11-21 at 18:15 +0000, Mark Brown wrote:
> The driver only supports I2C so doesn't need to do things conditionally.
> 
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  sound/soc/codecs/tlv320aic3x.c |    6 ------
>  1 files changed, 0 insertions(+), 6 deletions(-)
> 
> diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
> index 14cb553..2e2bf18 100644
> --- a/sound/soc/codecs/tlv320aic3x.c
> +++ b/sound/soc/codecs/tlv320aic3x.c
> @@ -1481,7 +1481,6 @@ static struct snd_soc_codec_driver soc_codec_dev_aic3x = {
>  	.resume = aic3x_resume,
>  };
>  
> -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)

Yeah, these have been here just from the beginning and nobody haven't
added SPI support so worth to remove.

Acked-by: Jarkko Nikula <jhnikula at gmail.com>



More information about the Alsa-devel mailing list