diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-06 12:52:17 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-12-14 21:35:26 +0100 |
commit | 1fdafaaed70f6f6cd48574ce987dcf57ede5980a (patch) | |
tree | c5e0066957d54960c921c4e1fd9f4e65690657a6 /drivers/mmc | |
parent | mmc: sdhci-esdhc-imx: Add sdhc support for i.MXRT series (diff) | |
download | linux-1fdafaaed70f6f6cd48574ce987dcf57ede5980a.tar.xz linux-1fdafaaed70f6f6cd48574ce987dcf57ede5980a.zip |
mmc: mmc_spi: Convert 'multiple' to be boolean in mmc_spi_data_do()
Convert 'multiple' to be boolean in mmc_spi_data_do() since
it's initially being used as boolean.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211206115218.73874-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mmc_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c index b431cdd27353..4b0f9035ad29 100644 --- a/drivers/mmc/host/mmc_spi.c +++ b/drivers/mmc/host/mmc_spi.c @@ -547,7 +547,7 @@ mmc_spi_command_send(struct mmc_spi_host *host, static void mmc_spi_setup_data_message( struct mmc_spi_host *host, - int multiple, + bool multiple, enum dma_data_direction direction) { struct spi_transfer *t; @@ -862,7 +862,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd, enum dma_data_direction direction; struct scatterlist *sg; unsigned n_sg; - int multiple = (data->blocks > 1); + bool multiple = (data->blocks > 1); u32 clock_rate; unsigned long timeout; |