]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: sh-msiof: Make words/bits unsigned in sh_msiof_spi_txrx_once()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 16 May 2025 13:32:09 +0000 (15:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 May 2025 10:55:23 +0000 (11:55 +0100)
commitb4eec5cdf112e3a4e286fb79fe507b09e2fca66f
tree19a5231d69c84f5376b3b5e250fc772feefa9939
parent3dd5ed19a2e8283f9ead5f2fd09b267a337ab86d
spi: sh-msiof: Make words/bits unsigned in sh_msiof_spi_txrx_once()

Make the words and bits parameters of sh_msiof_spi_txrx_once() unsigned,
as that matches what is passed by the caller.

This allows us to replace min_t() by the safer min().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/30eff1052642a4bcb0f1bc4bed7aae25d355a7dc.1747401908.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c