Skip to content

Commit 3a4d5f4

Browse files
committed
mtd: spi-nor: core: Make spi_nor_set_4byte_addr_mode_brwr public
This method can be retrieved at BFPT parsing time. The method is described in JESD216 BFPT[SFDP_DWORD(16)], BIT(28) and BIT(20). Reviewed-by: Michael Walle <michael@walle.cc> Link: https://lore.kernel.org/r/20230331074606.3559258-6-tudor.ambarus@linaro.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent d75c22f commit 3a4d5f4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/mtd/spi-nor/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ int spi_nor_set_4byte_addr_mode_wren_en4b_ex4b(struct spi_nor *nor, bool enable)
579579
*
580580
* Return: 0 on success, -errno otherwise.
581581
*/
582-
static int spi_nor_set_4byte_addr_mode_brwr(struct spi_nor *nor, bool enable)
582+
int spi_nor_set_4byte_addr_mode_brwr(struct spi_nor *nor, bool enable)
583583
{
584584
int ret;
585585

drivers/mtd/spi-nor/core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ int spi_nor_write_disable(struct spi_nor *nor);
650650
int spi_nor_set_4byte_addr_mode_en4b_ex4b(struct spi_nor *nor, bool enable);
651651
int spi_nor_set_4byte_addr_mode_wren_en4b_ex4b(struct spi_nor *nor,
652652
bool enable);
653+
int spi_nor_set_4byte_addr_mode_brwr(struct spi_nor *nor, bool enable);
653654
int spi_nor_wait_till_ready(struct spi_nor *nor);
654655
int spi_nor_global_block_unlock(struct spi_nor *nor);
655656
int spi_nor_prep_and_lock(struct spi_nor *nor);

0 commit comments

Comments
 (0)