linux_dsm_epyc7002/drivers/mtd/spi-nor
Michal Suchanek 59451e1233 mtd: spi-nor: change return value of read/write
Change the return value of spi-nor device read and write methods to
allow returning amount of data transferred and errors as
read(2)/write(2) does.

Also, start handling positive returns in spi_nor_read(), since we want
to convert drivers to start returning the read-length both via *retlen
and the return code. (We don't need to do the same transition process
for spi_nor_write(), since ->write() didn't used to have a return code
at all.)

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Michal Suchanek <hramrach@gmail.com>
Tested-by: Michal Suchanek <hramrach@gmail.com>
2016-06-01 17:22:28 -07:00
..
fsl-quadspi.c mtd: spi-nor: change return value of read/write 2016-06-01 17:22:28 -07:00
Kconfig mtd: spi-nor: fsl-quadspi: add support for layerscape 2016-03-07 11:46:44 -08:00
Makefile mtd: mtk-nor: new Mediatek serial flash controller driver 2015-11-20 17:35:16 -08:00
mtk-quadspi.c mtd: spi-nor: change return value of read/write 2016-06-01 17:22:28 -07:00
nxp-spifi.c mtd: spi-nor: change return value of read/write 2016-06-01 17:22:28 -07:00
spi-nor.c mtd: spi-nor: change return value of read/write 2016-06-01 17:22:28 -07:00