X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Ftwl6040.c;h=3c79dbb6c32323b36bc974616c5ff1157498f281;hb=b7e8bbf29d9c90a301ca0060186af687992566d8;hp=caf8784e77165c7ffeedd3095babbec73e0adfe5;hpb=a06e427d088d8a9b81defd42e6bae5f1cd69fc3f;p=deliverable%2Flinux.git diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index caf8784e7716..3c79dbb6c323 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c @@ -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;