From: Lars-Peter Clausen Date: Thu, 15 Jan 2015 11:52:17 +0000 (+0100) Subject: ASoC: Remove codec field from snd_soc_dapm_widget X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~130^2~13^2~11^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96da4e5b2e1d04478fb6d540085f2859256ca788;p=pandora-kernel.git ASoC: Remove codec field from snd_soc_dapm_widget There are no more users of this field left so it can finally be removed. New users should use snd_soc_dapm_to_codec(w->dapm); The reason why it is removed is because it doesn't fit to well anymore in the componentized ASoC hierarchy, where DAPM works on the snd_soc_component level. And the alternative of snd_soc_dapm_to_codec(w->dapm) typically generates the same amount of code, so there is really no reason to keep it. For automatic conversion the following coccinelle semantic patch can be used: // @@ struct snd_soc_dapm_widget *w; @@ -w->codec +snd_soc_dapm_to_codec(w->dapm) // Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed