ASoC: soc-pcm: use snd_soc_ret()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 5 Feb 2025 00:16:19 +0000 (00:16 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 17:26:20 +0000 (17:26 +0000)
commitbe61cd4242e4a53f5cf989ee7573121d041444bc
treef2c8774149c90ca050a8f88ad3b52ff64efdcdad
parent062b7ef6b103dcbcb3c084e8ace8e74e260b2346
ASoC: soc-pcm: use snd_soc_ret()

Many functions uses below style for error return

dev_err(dev, "message");
return -Exxxx;

We can merge these into snd_soc_ret() which can use same error
format. Let's cleaup code.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87cyfx2qlo.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c