Commit f340b920 authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by Mark Brown

spi: rockchip: mark use_dma as bool

The driver data has a u32 field use_dma which is
only ever used as a boolean, so change its type
to reflect that.
Signed-off-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 058f7c50
...@@ -202,7 +202,7 @@ struct rockchip_spi { ...@@ -202,7 +202,7 @@ struct rockchip_spi {
bool cs_asserted[ROCKCHIP_SPI_MAX_CS_NUM]; bool cs_asserted[ROCKCHIP_SPI_MAX_CS_NUM];
u32 use_dma; bool use_dma;
struct sg_table tx_sg; struct sg_table tx_sg;
struct sg_table rx_sg; struct sg_table rx_sg;
struct rockchip_spi_dma_data dma_rx; struct rockchip_spi_dma_data dma_rx;
...@@ -628,9 +628,9 @@ static int rockchip_spi_transfer_one( ...@@ -628,9 +628,9 @@ static int rockchip_spi_transfer_one(
/* we need prepare dma before spi was enabled */ /* we need prepare dma before spi was enabled */
if (master->can_dma && master->can_dma(master, spi, xfer)) if (master->can_dma && master->can_dma(master, spi, xfer))
rs->use_dma = 1; rs->use_dma = true;
else else
rs->use_dma = 0; rs->use_dma = false;
rockchip_spi_config(rs); rockchip_spi_config(rs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment