Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: sh-msiof: Change hz from unsigned long to u32

Both spi_transfer.speed_hz and spi_master.max_speed_hz are u32

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Geert Uytterhoeven and committed by
Mark Brown
6a85fc5a a669c11a

+3 -5
+3 -5
drivers/spi/spi-sh-msiof.c
··· 145 145 }; 146 146 147 147 static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p, 148 - unsigned long parent_rate, 149 - unsigned long spi_hz) 148 + unsigned long parent_rate, u32 spi_hz) 150 149 { 151 150 unsigned long div = 1024; 152 151 size_t k; ··· 372 373 return bits; 373 374 } 374 375 375 - static unsigned long sh_msiof_spi_hz(struct spi_device *spi, 376 - struct spi_transfer *t) 376 + static u32 sh_msiof_spi_hz(struct spi_device *spi, struct spi_transfer *t) 377 377 { 378 - unsigned long hz; 378 + u32 hz; 379 379 380 380 hz = t ? t->speed_hz : 0; 381 381 if (!hz)