Re: [PATCH v1 1/2] mmc: mmc_spi: Convert 'multiple' to be boolean in mmc_spi_data_do()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 6 Dec 2021 at 12:52, Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxx>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/mmc_spi.c | 4 ++--
>  1 file 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;
>
> --
> 2.33.0
>



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux