projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f4788f
)
mmc: mmc_spi: Convert 'multiple' to be boolean in mmc_spi_data_do()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 6 Dec 2021 11:52:17 +0000
(13:52 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 14 Dec 2021 20:35:26 +0000
(21:35 +0100)
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>
drivers/mmc/host/mmc_spi.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/mmc_spi.c
b/drivers/mmc/host/mmc_spi.c
index b431cdd27353b7ff4af84a7d9c72419945004de6..4b0f9035ad299c18746d7d91ef4791fa2760b4b7 100644
(file)
--- 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;