Commit 6a85fc5a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mark Brown

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: default avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent a669c11a
...@@ -145,8 +145,7 @@ static struct { ...@@ -145,8 +145,7 @@ static struct {
}; };
static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p, static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p,
unsigned long parent_rate, unsigned long parent_rate, u32 spi_hz)
unsigned long spi_hz)
{ {
unsigned long div = 1024; unsigned long div = 1024;
size_t k; size_t k;
...@@ -373,10 +372,9 @@ static int sh_msiof_spi_bits(struct spi_device *spi, struct spi_transfer *t) ...@@ -373,10 +372,9 @@ static int sh_msiof_spi_bits(struct spi_device *spi, struct spi_transfer *t)
return bits; return bits;
} }
static unsigned long sh_msiof_spi_hz(struct spi_device *spi, static u32 sh_msiof_spi_hz(struct spi_device *spi, struct spi_transfer *t)
struct spi_transfer *t)
{ {
unsigned long hz; u32 hz;
hz = t ? t->speed_hz : 0; hz = t ? t->speed_hz : 0;
if (!hz) if (!hz)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment