]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: wm{5102, 5110, 8997}: Replace codec->control_data with arizona->regmap
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 1 Mar 2014 12:45:32 +0000 (13:45 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 4 Mar 2014 04:05:21 +0000 (12:05 +0800)
With the ongoing component-ization of the ASoC framework and the continuing
migration to using regmap for IO the control_data field of the snd_soc_codec
struct will eventually be removed. Prepare the wm5192, wm5110 and wm8997
drivers for this by using arizona->regmap instead of accessing the CODEC's
control_data field.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm8997.c

index 293dffcb1d2f9cb056e1fc507c7dcf4e561d6bcd..34109050ceeded82cc4e223f467aba8171b4f74c 100644 (file)
@@ -582,7 +582,7 @@ static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w,
 {
        struct snd_soc_codec *codec = w->codec;
        struct arizona *arizona = dev_get_drvdata(codec->dev->parent);
-       struct regmap *regmap = codec->control_data;
+       struct regmap *regmap = arizona->regmap;
        const struct reg_default *patch = NULL;
        int i, patch_size;
 
index 4de2bf16dc744522aa41dff912ca8acbabf83051..d7bf8848174af59049c84a1e3149aa027d01b574 100644 (file)
@@ -136,7 +136,7 @@ static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w,
 {
        struct snd_soc_codec *codec = w->codec;
        struct arizona *arizona = dev_get_drvdata(codec->dev->parent);
-       struct regmap *regmap = codec->control_data;
+       struct regmap *regmap = arizona->regmap;
        const struct reg_default *patch = NULL;
        int i, patch_size;
 
index 4e6442ce9a2aff7c1aac9b5ff0e6b148586f1212..e10f44d7fdb78381a9c459d1d9bce5cbfa61b44d 100644 (file)
@@ -86,7 +86,7 @@ static int wm8997_sysclk_ev(struct snd_soc_dapm_widget *w,
 {
        struct snd_soc_codec *codec = w->codec;
        struct arizona *arizona = dev_get_drvdata(codec->dev->parent);
-       struct regmap *regmap = codec->control_data;
+       struct regmap *regmap = arizona->regmap;
        const struct reg_default *patch = NULL;
        int i, patch_size;