Commit 4e9a429a authored by Roy Chateau's avatar Roy Chateau Committed by Mark Brown

ASoC: codecs: tas2780: Fix log of failed reset via I2C.

Correctly log failures of reset via I2C.
Signed-off-by: default avatarRoy Chateau <roy.chateau@mep-info.com>
Link: https://lore.kernel.org/r/20231013110239.473123-1-roy.chateau@mep-info.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f88dfbf3
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment