spi: bcm2835: bcm2835_spi_transfer_one_poll remove unnecessary argument

Remove the unnecessary argument of xfer_time_us when calling
bcm2835_spi_transfer_one_poll.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>

Changelog:
  V1 -> V2: applied feedback by Stefan Wahren
            reorganized patchset
	    added extra rational, descriptions
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Martin Sperl 2019-04-23 20:15:08 +00:00 committed by Mark Brown
parent c3fdefc2d7
commit 9ac3f90db4
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 2 additions and 4 deletions

View File

@ -697,8 +697,7 @@ err:
static int bcm2835_spi_transfer_one_poll(struct spi_master *master, static int bcm2835_spi_transfer_one_poll(struct spi_master *master,
struct spi_device *spi, struct spi_device *spi,
struct spi_transfer *tfr, struct spi_transfer *tfr,
u32 cs, u32 cs)
unsigned long long xfer_time_us)
{ {
struct bcm2835_spi *bs = spi_master_get_devdata(master); struct bcm2835_spi *bs = spi_master_get_devdata(master);
unsigned long timeout; unsigned long timeout;
@ -799,8 +798,7 @@ static int bcm2835_spi_transfer_one(struct spi_master *master,
/* for short requests run polling*/ /* for short requests run polling*/
if (xfer_time_us <= BCM2835_SPI_POLLING_LIMIT_US) if (xfer_time_us <= BCM2835_SPI_POLLING_LIMIT_US)
return bcm2835_spi_transfer_one_poll(master, spi, tfr, return bcm2835_spi_transfer_one_poll(master, spi, tfr, cs);
cs, xfer_time_us);
/* run in dma mode if conditions are right */ /* run in dma mode if conditions are right */
if (master->can_dma && bcm2835_spi_can_dma(master, spi, tfr)) if (master->can_dma && bcm2835_spi_can_dma(master, spi, tfr))