]> git.baikalelectronics.ru Git - kernel.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)
commitd0b789850d939eae5e41c73399799a56b495d302
tree57c1f7c8c65dcc8092184681281017f041728820
parent35a02b00caba4107065d01b0b8ed589d5ba06842
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