From: Lars-Peter Clausen Date: Mon, 11 May 2015 07:42:34 +0000 (+0200) Subject: ASoC: uda1380: Replace direct snd_soc_codec dapm field access X-Git-Tag: omap-for-v4.2/fixes-rc1^2~113^2~38^2~1^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f0617187ac2431e2efe85fccee749e6a31e9725;p=pandora-kernel.git ASoC: uda1380: Replace direct snd_soc_codec dapm field access The dapm field of the snd_soc_codec struct is eventually going to be removed, in preparation for this replace all manual access to codec->dapm.bias_level with snd_soc_codec_get_bias_level(). Also drop the unnecessary check at the beginning of the uda1380_set_bias_level() which compares the current level to the target level and aborts if they are the same. Since the core will not call the set_bias_level() callback if we already are in the target state the result of the check is always false. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed