ASoC: wm8{350,753,971}: Use snd_soc_dapm_to_codec() instead of dapm->codec

The CODEC struct in the snd_soc_dapm_context struct is deprecated and
scheduled for removal. Use the snd_soc_dapm_to_codec() function instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Lars-Peter Clausen 2014-09-29 11:40:40 +02:00 коммит произвёл Mark Brown
Родитель 0634814fe0
Коммит 9cca023e5c
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -212,7 +212,7 @@ static void wm8350_pga_work(struct work_struct *work)
{ {
struct snd_soc_dapm_context *dapm = struct snd_soc_dapm_context *dapm =
container_of(work, struct snd_soc_dapm_context, delayed_work.work); container_of(work, struct snd_soc_dapm_context, delayed_work.work);
struct snd_soc_codec *codec = dapm->codec; struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
struct wm8350_data *wm8350_data = snd_soc_codec_get_drvdata(codec); struct wm8350_data *wm8350_data = snd_soc_codec_get_drvdata(codec);
struct wm8350_output *out1 = &wm8350_data->out1, struct wm8350_output *out1 = &wm8350_data->out1,
*out2 = &wm8350_data->out2; *out2 = &wm8350_data->out2;

Просмотреть файл

@ -1433,7 +1433,7 @@ static void wm8753_work(struct work_struct *work)
struct snd_soc_dapm_context *dapm = struct snd_soc_dapm_context *dapm =
container_of(work, struct snd_soc_dapm_context, container_of(work, struct snd_soc_dapm_context,
delayed_work.work); delayed_work.work);
struct snd_soc_codec *codec = dapm->codec; struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
wm8753_set_bias_level(codec, dapm->bias_level); wm8753_set_bias_level(codec, dapm->bias_level);
} }

Просмотреть файл

@ -615,7 +615,7 @@ static void wm8971_work(struct work_struct *work)
struct snd_soc_dapm_context *dapm = struct snd_soc_dapm_context *dapm =
container_of(work, struct snd_soc_dapm_context, container_of(work, struct snd_soc_dapm_context,
delayed_work.work); delayed_work.work);
struct snd_soc_codec *codec = dapm->codec; struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
wm8971_set_bias_level(codec, codec->dapm.bias_level); wm8971_set_bias_level(codec, codec->dapm.bias_level);
} }