aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-02-12 15:31:26 -0500
committerMark Brown <broonie@linaro.org>2014-02-12 15:38:20 -0500
commit513273538a6c10dba1170ecdee5c2da15acecdb5 (patch)
tree8aae08673c9572f44cbceee6e24b633725397227
parent6ad45a27cbe343ec8d7888e5edf6335499a4b555 (diff)
spi: Make max_tx and max_rx the same type
Prevents spurious compiler warnings. Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/spi/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 49313dd0a144..f3fb1acf9ac1 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -644,7 +644,7 @@ static int spi_map_msg(struct spi_master *master, struct spi_message *msg)
644 struct device *tx_dev, *rx_dev; 644 struct device *tx_dev, *rx_dev;
645 struct spi_transfer *xfer; 645 struct spi_transfer *xfer;
646 void *tmp; 646 void *tmp;
647 size_t max_tx, max_rx; 647 unsigned int max_tx, max_rx;
648 int ret; 648 int ret;
649 649
650 if (master->flags & (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX)) { 650 if (master->flags & (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX)) {