OSDN Git Service

spi: atmel-quadspi: Move common code outside of if else
authorTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 7 Dec 2020 13:59:59 +0000 (15:59 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Dec 2020 14:18:07 +0000 (14:18 +0000)
commitc066efb07d1e8b801ea9d0727119958c9904e63d
tree05b2f9ac436dba20e4de1bd9724c038178c2a60c
parentd00364b6a60475cd75fd07e847ad6f955952638b
spi: atmel-quadspi: Move common code outside of if else

QSPI_IFR is set as the last QSPI Instruction Frame register
regardless of the sama5d2 or sam9x60 version of the IP. Move
the writing of QSPI_IFR outside of the IP specific code.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201207135959.154124-5-tudor.ambarus@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c