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 <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fa8ecda commit 7086f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)