Skip to content

Commit b846915

Browse files
committed
mtd: spi-nor: Fix description of the sr_ready() return value
The functions return 1 if ready, 0 if not ready, -errno on errors. Signed-off-by: Tudor Ambarus <[email protected]> Reviewed-by: Vignesh Raghavendra <[email protected]>
1 parent 8aadd77 commit b846915

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/mtd/spi-nor/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ int spi_nor_xread_sr(struct spi_nor *nor, u8 *sr)
499499
* the flash is ready for new commands.
500500
* @nor: pointer to 'struct spi_nor'.
501501
*
502-
* Return: 0 on success, -errno otherwise.
502+
* Return: 1 if ready, 0 if not ready, -errno on errors.
503503
*/
504504
static int spi_nor_xsr_ready(struct spi_nor *nor)
505505
{
@@ -542,7 +542,7 @@ static void spi_nor_clear_sr(struct spi_nor *nor)
542542
* for new commands.
543543
* @nor: pointer to 'struct spi_nor'.
544544
*
545-
* Return: 0 on success, -errno otherwise.
545+
* Return: 1 if ready, 0 if not ready, -errno on errors.
546546
*/
547547
static int spi_nor_sr_ready(struct spi_nor *nor)
548548
{
@@ -606,7 +606,7 @@ static void spi_nor_clear_fsr(struct spi_nor *nor)
606606
* ready for new commands.
607607
* @nor: pointer to 'struct spi_nor'.
608608
*
609-
* Return: 0 on success, -errno otherwise.
609+
* Return: 1 if ready, 0 if not ready, -errno on errors.
610610
*/
611611
static int spi_nor_fsr_ready(struct spi_nor *nor)
612612
{
@@ -647,7 +647,7 @@ static int spi_nor_fsr_ready(struct spi_nor *nor)
647647
* spi_nor_ready() - Query the flash to see if it is ready for new commands.
648648
* @nor: pointer to 'struct spi_nor'.
649649
*
650-
* Return: 0 on success, -errno otherwise.
650+
* Return: 1 if ready, 0 if not ready, -errno on errors.
651651
*/
652652
static int spi_nor_ready(struct spi_nor *nor)
653653
{

0 commit comments

Comments
 (0)