Skip to content

Commit

Permalink
spi: sh-msiof: Change hz from unsigned long to u32
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Mark Brown committed Feb 22, 2014
1 parent a669c11 commit 6a85fc5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/spi/spi-sh-msiof.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ static struct {
};

static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p,
unsigned long parent_rate,
unsigned long spi_hz)
unsigned long parent_rate, u32 spi_hz)
{
unsigned long div = 1024;
size_t k;
Expand Down Expand Up @@ -373,10 +372,9 @@ static int sh_msiof_spi_bits(struct spi_device *spi, struct spi_transfer *t)
return bits;
}

static unsigned long sh_msiof_spi_hz(struct spi_device *spi,
struct spi_transfer *t)
static u32 sh_msiof_spi_hz(struct spi_device *spi, struct spi_transfer *t)
{
unsigned long hz;
u32 hz;

hz = t ? t->speed_hz : 0;
if (!hz)
Expand Down

0 comments on commit 6a85fc5

Please sign in to comment.