spi: qup: call io_config in mode specific function
authorVaradarajan Narayanan <varada@codeaurora.org>
Fri, 28 Jul 2017 06:52:56 +0000 (12:22 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 8 Aug 2017 11:15:35 +0000 (12:15 +0100)
commit3b5ea2c981dd470882bdc83e548dd15a942dbf4d
treecebbae935370ae7ab28b77983fac1d850120f41d
parent94b9149febddcd367de75d2706a32183e2abbaa7
spi: qup: call io_config in mode specific function

DMA transactions should only only need to call io_config only once, but
block mode might call it several times to setup several transactions so
it can handle reads/writes larger than the max size per transaction, so
we move the call to the do_ functions.

This is just refactoring, there should be no functional change

Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
Signed-off-by: Varadarajan Narayanan <varada@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c