summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorRoy Chateau <roy.chateau@mep-info.com>2023-10-13 14:02:39 +0300
committerMark Brown <broonie@kernel.org>2023-10-13 18:41:16 +0300
commit4e9a429ae80657bdc502d3f5078e2073656ec5fd (patch)
tree67c26ac7dbe81bd9834fc47813f60b4b0f711f2b /sound/soc
parentf88dfbf333b3661faff996bb03af2024d907b76a (diff)
downloadlinux-4e9a429ae80657bdc502d3f5078e2073656ec5fd.tar.xz
ASoC: codecs: tas2780: Fix log of failed reset via I2C.
Correctly log failures of reset via I2C. Signed-off-by: Roy Chateau <roy.chateau@mep-info.com> Link: https://lore.kernel.org/r/20231013110239.473123-1-roy.chateau@mep-info.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/tas2780.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2780.c b/sound/soc/codecs/tas2780.c
index 86bd6c18a944..41076be23854 100644
--- a/sound/soc/codecs/tas2780.c
+++ b/sound/soc/codecs/tas2780.c
@@ -39,7 +39,7 @@ static void tas2780_reset(struct tas2780_priv *tas2780)
usleep_range(2000, 2050);
}
- snd_soc_component_write(tas2780->component, TAS2780_SW_RST,
+ ret = snd_soc_component_write(tas2780->component, TAS2780_SW_RST,
TAS2780_RST);
if (ret)
dev_err(tas2780->dev, "%s:errCode:0x%x Reset error!\n",