Skip to content

Commit

Permalink
spi: match var type to return type of wait_for_completion
Browse files Browse the repository at this point in the history
return type of wait_for_completion_timeout is unsigned long not int, this
patch changes the type of m from int to unsigned long.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Nicholas Mc Guire authored and Mark Brown committed Feb 4, 2015
1 parent 97bf6af commit 682a71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ static int spi_transfer_one_message(struct spi_master *master,
struct spi_transfer *xfer;
bool keep_cs = false;
int ret = 0;
int ms = 1;
unsigned long ms = 1;

spi_set_cs(msg->spi, true);

Expand Down

0 comments on commit 682a71b

Please sign in to comment.