mtd: nxp-spifi: return amount of data transferred or error in read/write
authorBrian Norris <computersforpeace@gmail.com>
Fri, 6 May 2016 00:31:51 +0000 (17:31 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 2 Jun 2016 00:22:45 +0000 (17:22 -0700)
commitbc418cd2652f47a327e27f978caa3d85f9558b09
tree1db7f46119b1d1b3d235842b3a24a87fb29f079e
parent78b400fde966fac6d1bc22b2960a757305215e1b
mtd: nxp-spifi: 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/nxp-spifi.c