提交 1fdafaae 编写于 作者: A Andy Shevchenko 提交者: Ulf Hansson

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211206115218.73874-1-andriy.shevchenko@linux.intel.comSigned-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 2f4788f3
...@@ -547,7 +547,7 @@ mmc_spi_command_send(struct mmc_spi_host *host, ...@@ -547,7 +547,7 @@ mmc_spi_command_send(struct mmc_spi_host *host,
static void static void
mmc_spi_setup_data_message( mmc_spi_setup_data_message(
struct mmc_spi_host *host, struct mmc_spi_host *host,
int multiple, bool multiple,
enum dma_data_direction direction) enum dma_data_direction direction)
{ {
struct spi_transfer *t; struct spi_transfer *t;
...@@ -862,7 +862,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd, ...@@ -862,7 +862,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd,
enum dma_data_direction direction; enum dma_data_direction direction;
struct scatterlist *sg; struct scatterlist *sg;
unsigned n_sg; unsigned n_sg;
int multiple = (data->blocks > 1); bool multiple = (data->blocks > 1);
u32 clock_rate; u32 clock_rate;
unsigned long timeout; unsigned long timeout;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册