Skip to content

Commit d92e0db

Browse files
mwallePratyush Yadav
authored andcommitted
mtd: spi-nor: export spi_nor_hwcaps_pp2cmd()
The function will also be used by the debugfs module. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Link: https://lore.kernel.org/r/20220429102018.2361038-1-michael@walle.cc
1 parent 94f697c commit d92e0db

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
@@ -1850,7 +1850,7 @@ int spi_nor_hwcaps_read2cmd(u32 hwcaps)
18501850
ARRAY_SIZE(hwcaps_read2cmd));
18511851
}
18521852

1853-
static int spi_nor_hwcaps_pp2cmd(u32 hwcaps)
1853+
int spi_nor_hwcaps_pp2cmd(u32 hwcaps)
18541854
{
18551855
static const int hwcaps_pp2cmd[][2] = {
18561856
{ SNOR_HWCAPS_PP, SNOR_CMD_PP },

drivers/mtd/spi-nor/core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ int spi_nor_otp_lock_sr2(struct spi_nor *nor, unsigned int region);
664664
int spi_nor_otp_is_locked_sr2(struct spi_nor *nor, unsigned int region);
665665

666666
int spi_nor_hwcaps_read2cmd(u32 hwcaps);
667+
int spi_nor_hwcaps_pp2cmd(u32 hwcaps);
667668
u8 spi_nor_convert_3to4_read(u8 opcode);
668669
void spi_nor_set_read_settings(struct spi_nor_read_command *read,
669670
u8 num_mode_clocks,

0 commit comments

Comments
 (0)