Skip to content

Commit 7086f49

Browse files
lategoodbyebroonie
authored andcommitted
spi: spi-fsl-lpspi: Fix specifiers in fsl_lpspi_set_bitrate
Most of the parameters are unsigned, so fix the used format specifiers in the debug message in fsl_lpspi_set_bitrate. Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20240930093056.93418-3-wahrenst@gmx.net Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fa8ecda commit 7086f49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-fsl-lpspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static int fsl_lpspi_set_bitrate(struct fsl_lpspi_data *fsl_lpspi)
351351
writel(scldiv | (scldiv << 8) | ((scldiv >> 1) << 16),
352352
fsl_lpspi->base + IMX7ULP_CCR);
353353

354-
dev_dbg(fsl_lpspi->dev, "perclk=%d, speed=%d, prescale=%d, scldiv=%d\n",
354+
dev_dbg(fsl_lpspi->dev, "perclk=%u, speed=%u, prescale=%u, scldiv=%d\n",
355355
perclk_rate, config.speed_hz, prescale, scldiv);
356356

357357
return 0;

0 commit comments

Comments
 (0)