@@ -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 */
504504static 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 */
547547static 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 */
611611static int spi_nor_fsr_ready (struct spi_nor * nor )
612612{
@@ -640,14 +640,14 @@ static int spi_nor_fsr_ready(struct spi_nor *nor)
640640 return - EIO ;
641641 }
642642
643- return nor -> bouncebuf [0 ] & FSR_READY ;
643+ return !!( nor -> bouncebuf [0 ] & FSR_READY ) ;
644644}
645645
646646/**
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 */
652652static int spi_nor_ready (struct spi_nor * nor )
653653{
@@ -2469,7 +2469,7 @@ static int spi_nor_select_read(struct spi_nor *nor,
24692469 nor -> read_proto = read -> proto ;
24702470
24712471 /*
2472- * In the spi-nor framework, we don't need to make the difference
2472+ * In the SPI NOR framework, we don't need to make the difference
24732473 * between mode clock cycles and wait state clock cycles.
24742474 * Indeed, the value of the mode clock cycles is used by a QSPI
24752475 * flash memory to know whether it should enter or leave its 0-4-4
@@ -2675,7 +2675,7 @@ static int spi_nor_setup(struct spi_nor *nor,
26752675/**
26762676 * spi_nor_manufacturer_init_params() - Initialize the flash's parameters and
26772677 * settings based on MFR register and ->default_init() hook.
2678- * @nor: pointer to a 'struct spi-nor '.
2678+ * @nor: pointer to a 'struct spi_nor '.
26792679 */
26802680static void spi_nor_manufacturer_init_params (struct spi_nor * nor )
26812681{
@@ -2690,7 +2690,7 @@ static void spi_nor_manufacturer_init_params(struct spi_nor *nor)
26902690/**
26912691 * spi_nor_sfdp_init_params() - Initialize the flash's parameters and settings
26922692 * based on JESD216 SFDP standard.
2693- * @nor: pointer to a 'struct spi-nor '.
2693+ * @nor: pointer to a 'struct spi_nor '.
26942694 *
26952695 * The method has a roll-back mechanism: in case the SFDP parsing fails, the
26962696 * legacy flash parameters and settings will be restored.
@@ -2712,7 +2712,7 @@ static void spi_nor_sfdp_init_params(struct spi_nor *nor)
27122712/**
27132713 * spi_nor_info_init_params() - Initialize the flash's parameters and settings
27142714 * based on nor->info data.
2715- * @nor: pointer to a 'struct spi-nor '.
2715+ * @nor: pointer to a 'struct spi_nor '.
27162716 */
27172717static void spi_nor_info_init_params (struct spi_nor * nor )
27182718{
@@ -2841,7 +2841,7 @@ static void spi_nor_late_init_params(struct spi_nor *nor)
28412841
28422842/**
28432843 * spi_nor_init_params() - Initialize the flash's parameters and settings.
2844- * @nor: pointer to a 'struct spi-nor '.
2844+ * @nor: pointer to a 'struct spi_nor '.
28452845 *
28462846 * The flash parameters and settings are initialized based on a sequence of
28472847 * calls that are ordered by priority:
@@ -3126,7 +3126,7 @@ int spi_nor_scan(struct spi_nor *nor, const char *name,
31263126 /*
31273127 * Make sure the XSR_RDY flag is set before calling
31283128 * spi_nor_wait_till_ready(). Xilinx S3AN share MFR
3129- * with Atmel spi-nor
3129+ * with Atmel SPI NOR.
31303130 */
31313131 if (info -> flags & SPI_NOR_XSR_RDY )
31323132 nor -> flags |= SNOR_F_READY_XSR_RDY ;
0 commit comments