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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:53:32 +0000 (09:53 +0200)
commit3f8d3c9506a5d56aef128300b262900c7e48cdb3
treea1d5d8999b0adbe432e60ffc909142b034b819cc
parent3c3dd68c48e83aca55dc72a33260a71608510160
ASoC: ak4458: rstn_control - return a non-zero on error only

[ Upstream commit 176a11834b65ec35e3b7a953f87fb9cc41309497 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/ak4458.c