Commit 8aadd77c authored by Tudor Ambarus's avatar Tudor Ambarus

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: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent f80ff131
...@@ -640,7 +640,7 @@ static int spi_nor_fsr_ready(struct spi_nor *nor) ...@@ -640,7 +640,7 @@ static int spi_nor_fsr_ready(struct spi_nor *nor)
return -EIO; return -EIO;
} }
return nor->bouncebuf[0] & FSR_READY; return !!(nor->bouncebuf[0] & FSR_READY);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment