OSDN Git Service

spi: fsl-spi: Change mspi_apply_cpu_mode_quirks() to void
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 1 Apr 2023 17:59:49 +0000 (19:59 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 5 Apr 2023 11:33:35 +0000 (12:33 +0100)
commit99aebb3c1b418d865461aa0813ef1b55285cbda4
tree3f1d1e5adbad7242382b1942b14a0ac55db8e9e8
parentfc96ec826bced75cc6b9c07a4ac44bbf651337ab
spi: fsl-spi: Change mspi_apply_cpu_mode_quirks() to void

mspi_apply_cpu_mode_quirks() always returns the passed bits_per_word
unmodified.

Make it return void, then don't check bits_per_word anymore on
return as it doesn't change.

bits_per_word is already checked by __spi_validate() so no risk to
have bits_per_word higher than 32.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/3142a7c40af12a160f4e134764f2c34da3d8e1e2.1680371809.git.christophe.leroy@csgroup.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c