spi: rockchip: simplify use_dma logic
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 31 Oct 2018 10:57:06 +0000 (11:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:42:23 +0000 (11:42 +0000)
commiteff0275e5253604429aedc42b008c5fcaa6cc597
treec6a7ab6f7560804c1b9aac88bdce61e6cddf0abe
parentd790c342e689ea77a5cf72d5b993299911ee5276
spi: rockchip: simplify use_dma logic

We only need to know if we're using dma when setting
up the transfer, so just use a local variable for
that.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c