[alsa-devel] [PATCH] ASoC: Remove unused control_data and mutex fields from struct alc5632_priv

Leon Romanovsky leon at leon.nu
Sun Nov 13 20:47:59 CET 2011


On Sun, Nov 13, 2011 at 05:56, Axel Lin <axel.lin at gmail.com> wrote:
> Signed-off-by: Axel Lin <axel.lin at gmail.com>
> ---
>  sound/soc/codecs/alc5632.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c
> index ee6a497..bfb48ba 100644
> --- a/sound/soc/codecs/alc5632.c
> +++ b/sound/soc/codecs/alc5632.c
> @@ -68,8 +68,6 @@ static const u16 alc5632_reg_defaults[] = {
>  /* codec private data */
>  struct alc5632_priv {
>        enum snd_soc_control_type control_type;
> -       void *control_data;
> -       struct mutex mutex;
>        u8 id;
>        unsigned int sysclk;
>  };
> @@ -1092,9 +1090,7 @@ static int alc5632_i2c_probe(struct i2c_client *client,
>        }
>
>        i2c_set_clientdata(client, alc5632);
> -       alc5632->control_data = client;
>        alc5632->control_type = SND_SOC_I2C;
> -       mutex_init(&alc5632->mutex);
>
>        ret =  snd_soc_register_codec(&client->dev,
>                &soc_codec_device_alc5632, &alc5632_dai, 1);
> --
> 1.7.5.4
Thanks,

Mark, Liam do I need to sign Acked-Off-By on this type of patch?



-- 
Leon Romanovsky | Independent Linux Consultant
        www.leon.nu | leon at leon.nu


More information about the Alsa-devel mailing list