]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5f5ba969271d7a57455f1b8d3d0c0cc87cb3489
treed0b45bff793776cc12ea2721d81776eca51eac80
parent7a0a91be2ba536bf4976e0f80c6bca1860697c87
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