ASoC: ak4458: rstn_control - return a non-zero on error only
authorViorel Suman <viorel.suman@nxp.com>
Mon, 13 May 2019 10:02:42 +0000 (10:02 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 May 2019 15:12:59 +0000 (16:12 +0100)
commit176a11834b65ec35e3b7a953f87fb9cc41309497
tree79e0c3540ffcf374459b226a4780b5b6a47b9815
parent5087a8f17df868601cd7568299e91c28086d2b45
ASoC: ak4458: rstn_control - return a non-zero on error only

snd_soc_component_update_bits() may return 1 if operation
was successful and the value of the register changed.
Return a non-zero in ak4458_rstn_control for an error only.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4458.c