Merge tag 'upstream-3.16-rc1-v2' of git://git.infradead.org/linux-ubifs
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / wm8985.c
index a36e01cbe0f547a7479cbfe9f549b1aa4bcd80f0..0f5780c09f3a9ad479fd38cc9f78412d46632550 100644 (file)
@@ -526,7 +526,7 @@ static const struct snd_soc_dapm_route wm8985_dapm_routes[] = {
 static int eqmode_get(struct snd_kcontrol *kcontrol,
                      struct snd_ctl_elem_value *ucontrol)
 {
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
        unsigned int reg;
 
        reg = snd_soc_read(codec, WM8985_EQ1_LOW_SHELF);
@@ -541,7 +541,7 @@ static int eqmode_get(struct snd_kcontrol *kcontrol,
 static int eqmode_put(struct snd_kcontrol *kcontrol,
                      struct snd_ctl_elem_value *ucontrol)
 {
-       struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
+       struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
        unsigned int regpwr2, regpwr3;
        unsigned int reg_eq;