spi: fsl-espi: improve return value handling in fsl_espi_bufs
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 7 Sep 2016 20:52:43 +0000 (22:52 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 12 Sep 2016 18:58:45 +0000 (19:58 +0100)
commit84ccfc371f4a8d1ff86efd7ca7914e33b90325c2
treecd5ac36d8cbb1b9b496b7e4357b5404a5894bfe8
parent809b1e017bbdaf40d35619e41c1dbc542a5449d2
spi: fsl-espi: improve return value handling in fsl_espi_bufs

Return a proper status code from fsl_espi_bufs instead of returning
the number of remaining words and let the caller evaluate it.

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