mtd: spi-nor: export spi_nor_hwcaps_pp2cmd()
authorMichael Walle <michael@walle.cc>
Fri, 29 Apr 2022 10:20:17 +0000 (12:20 +0200)
committerPratyush Yadav <p.yadav@ti.com>
Mon, 9 May 2022 11:25:22 +0000 (16:55 +0530)
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
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h

index 94f9847858bdfad3b1d56cacc714edb4a187db4a..8377bd1842daef335c3455e79a8bc3f23f638ff6 100644 (file)
@@ -1850,7 +1850,7 @@ int spi_nor_hwcaps_read2cmd(u32 hwcaps)
                                  ARRAY_SIZE(hwcaps_read2cmd));
 }
 
-static int spi_nor_hwcaps_pp2cmd(u32 hwcaps)
+int spi_nor_hwcaps_pp2cmd(u32 hwcaps)
 {
        static const int hwcaps_pp2cmd[][2] = {
                { SNOR_HWCAPS_PP,               SNOR_CMD_PP },
index 296bfa57f7c1b6e58b25c24b84c4c9d3a592a3c0..ef37e179c61517737ac5aa3e551c85bfccbe5168 100644 (file)
@@ -664,6 +664,7 @@ int spi_nor_otp_lock_sr2(struct spi_nor *nor, unsigned int region);
 int spi_nor_otp_is_locked_sr2(struct spi_nor *nor, unsigned int region);
 
 int spi_nor_hwcaps_read2cmd(u32 hwcaps);
+int spi_nor_hwcaps_pp2cmd(u32 hwcaps);
 u8 spi_nor_convert_3to4_read(u8 opcode);
 void spi_nor_set_read_settings(struct spi_nor_read_command *read,
                               u8 num_mode_clocks,