projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80ff13
)
mtd: spi-nor: Uniformize the return value in spi_nor_*_ready()
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Tue, 21 Apr 2020 06:31:31 +0000
(06:31 +0000)
committer
Tudor Ambarus
<tudor.ambarus@microchip.com>
Wed, 29 Apr 2020 06:03:20 +0000
(09:03 +0300)
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
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/core.c
b/drivers/mtd/spi-nor/core.c
index
757ac0e
..
2fede06
100644
(file)
--- a/
drivers/mtd/spi-nor/core.c
+++ b/
drivers/mtd/spi-nor/core.c
@@
-640,7
+640,7
@@
static int spi_nor_fsr_ready(struct spi_nor *nor)
return -EIO;
}
- return
nor->bouncebuf[0] & FSR_READY
;
+ return
!!(nor->bouncebuf[0] & FSR_READY)
;
}
/**