mtd: spi-nor: Uniformize the return value in spi_nor_*_ready()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 21 Apr 2020 06:31:31 +0000 (06:31 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 29 Apr 2020 06:03:20 +0000 (09:03 +0300)
commit8aadd77cd27172988414408f43bb9e5bef01b14d
treebac5a2155b4bb11dc8127e0c9d280c18f2b5c09e
parentf80ff13135cb44a9be96f695d19212ae952ee5f4
mtd: spi-nor: Uniformize the return value in spi_nor_*_ready()

spi_nor_ready() returns 1 if ready, 0 if not ready and -errno on errors.
Do the same in all the spi_nor_*_ready() children.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/core.c