]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: fsl-espi: factor out filling the local buffer
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Sep 2016 20:50:53 +0000 (22:50 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 12 Sep 2016 18:58:45 +0000 (19:58 +0100)
commit7c159aa8c103b02a8434ae18b22048952c796e6f
tree57c1f7c8c65dcc8092184681281017f041728820
parent1423877b73ed5f4982eaba8bed359605b9918a2b
spi: fsl-espi: factor out filling the local buffer

Better structure the code by factoring out filling the local buffer.

In addition don't initialize the complete local buffer at the
beginning of fsl_espi_do_one_msg. Instead move initialization of
those parts of the local buffer to be used for transfers w/o tx_buf
to fsl_espi_copy_to_buf.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c