Merge remote-tracking branch 'asoc/topic/twl6040' into asoc-next
[deliverable/linux.git] / sound / soc / codecs / twl6040.c
index caf8784e77165c7ffeedd3095babbec73e0adfe5..3c79dbb6c32323b36bc974616c5ff1157498f281 100644 (file)
@@ -438,9 +438,7 @@ static irqreturn_t twl6040_audio_handler(int irq, void *data)
 static int twl6040_soc_dapm_put_vibra_enum(struct snd_kcontrol *kcontrol,
        struct snd_ctl_elem_value *ucontrol)
 {
-       struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol);
-       struct snd_soc_dapm_widget *widget = wlist->widgets[0];
-       struct snd_soc_codec *codec = widget->codec;
+       struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol);
        struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
        unsigned int val;
 
This page took 0.037883 seconds and 5 git commands to generate.