Skip to content

Commit 4e9a429

Browse files
Roy Chateaubroonie
authored andcommitted
ASoC: codecs: tas2780: Fix log of failed reset via I2C.
Correctly log failures of reset via I2C. Signed-off-by: Roy Chateau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f88dfbf commit 4e9a429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/tas2780.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static void tas2780_reset(struct tas2780_priv *tas2780)
3939
usleep_range(2000, 2050);
4040
}
4141

42-
snd_soc_component_write(tas2780->component, TAS2780_SW_RST,
42+
ret = snd_soc_component_write(tas2780->component, TAS2780_SW_RST,
4343
TAS2780_RST);
4444
if (ret)
4545
dev_err(tas2780->dev, "%s:errCode:0x%x Reset error!\n",

0 commit comments

Comments
 (0)