]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: m25p80: return amount of data transferred or error in read/write
authorMichal Suchanek <hramrach@gmail.com>
Fri, 6 May 2016 00:31:48 +0000 (17:31 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 2 Jun 2016 00:22:37 +0000 (17:22 -0700)
commit1992297b0810a42d78ec7b4de15304eb0489fd97
tree6323c58c98f20094c182e5457a5a967ce8b90852
parent59451e1233bd315c5379a631838a03d80e689581
mtd: m25p80: 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: Michal Suchanek <hramrach@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Michal Suchanek <hramrach@gmail.com>
Tested-by: Michal Suchanek <hramrach@gmail.com>
drivers/mtd/devices/m25p80.c