Browse Source

spi: Make max_tx and max_rx the same type

Prevents spurious compiler warnings.

Signed-off-by: Mark Brown <broonie@linaro.org>
Mark Brown 11 years ago
parent
commit
513273538a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/spi/spi.c

+ 1 - 1
drivers/spi/spi.c

@@ -644,7 +644,7 @@ static int spi_map_msg(struct spi_master *master, struct spi_message *msg)
 	struct device *tx_dev, *rx_dev;
 	struct spi_transfer *xfer;
 	void *tmp;
-	size_t max_tx, max_rx;
+	unsigned int max_tx, max_rx;
 	int ret;
 
 	if (master->flags & (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX)) {