Skip to content

Commit 248adfe

Browse files
simontrimmerbroonie
authored andcommitted
ASoC: cs530x: Correct log message with expected variable
The function used one parameter for the switch statement, but logged a different parameter when it defaulted. Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com> Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com> Link: https://patch.msgid.link/20251017161543.214235-2-vitalyr@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 211ddde commit 248adfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs530x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ static int cs530x_set_sysclk(struct snd_soc_component *component, int clk_id,
793793
case CS530X_SYSCLK_SRC_PLL:
794794
break;
795795
default:
796-
dev_err(component->dev, "Invalid clock id %d\n", clk_id);
796+
dev_err(component->dev, "Invalid sysclk source: %d\n", source);
797797
return -EINVAL;
798798
}
799799

0 commit comments

Comments
 (0)