mtd: mtk-quadspi: return amount of data transferred or error in read/write
authorBrian Norris <computersforpeace@gmail.com>
Fri, 6 May 2016 00:31:50 +0000 (17:31 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 2 Jun 2016 00:22:45 +0000 (17:22 -0700)
commit78b400fde966fac6d1bc22b2960a757305215e1b
tree95d32ec7689c467ff059308235b4acdaa5d49bd0
parentfc0d7e542a0d4193521899d15f8f4999dc295323
mtd: mtk-quadspi: return amount of data transferred or error in read/write

Add checking of SPI transfer errors and return them from read/write
functions. Also return the amount of data transferred.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/mtk-quadspi.c