]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: cs530x: Correct log message with expected variable
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 17 Oct 2025 16:15:28 +0000 (17:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2025 01:38:06 +0000 (02:38 +0100)
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>
sound/soc/codecs/cs530x.c

index b9eff240b929795f7e80098d542ba52273621175..535387cd7aa324c0bf047db5c85ee878c086593d 100644 (file)
@@ -793,7 +793,7 @@ static int cs530x_set_sysclk(struct snd_soc_component *component, int clk_id,
        case CS530X_SYSCLK_SRC_PLL:
                break;
        default:
-               dev_err(component->dev, "Invalid clock id %d\n", clk_id);
+               dev_err(component->dev, "Invalid sysclk source: %d\n", source);
                return -EINVAL;
        }