Skip to content

Commit 463d7cf

Browse files
Kuwano-sanambarus
authored andcommitted
mtd: spi-nor: spansion: switch h28hx's ready() to use vreg_offset
s28hx is the sole user of cypress_nor_set_octal_dtr, which already uses vreg_offset to set octal DTR. Switch the ready method to use vreg_offset as well. This is a preparation patch. The goal is to use the same s28hx methods for the multi die version of the flash. Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Link: https://lore.kernel.org/r/20230726075257.12985-6-tudor.ambarus@linaro.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent 362f786 commit 463d7cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/spi-nor/spansion.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ static int s28hx_t_late_init(struct spi_nor *nor)
728728
}
729729

730730
params->set_octal_dtr = cypress_nor_set_octal_dtr;
731+
params->ready = cypress_nor_sr_ready_and_clear;
731732
cypress_nor_ecc_init(nor);
732733

733734
return 0;

0 commit comments

Comments
 (0)