ASoC: sn95031: Replace direct snd_soc_codec dapm field access
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 May 2015 10:32:53 +0000 (12:32 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 15 May 2015 15:48:56 +0000 (16:48 +0100)
commit22310d320e352c5dd08b40bcabaefa62e71ed652
treed0b45bff793776cc12ea2721d81776eca51eac80
parent45a110a1377d9f7afbbf53e351b72cf813ac426e
ASoC: sn95031: 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().

While we are at it also replace the if(x == A) ... else if(x == B) ...
construct with a switch-case.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sn95031.c