summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2024-08-26 13:14:08 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2024-09-06 18:00:08 +0300
commita06f2e7cc4de104b14971e08d37f9d08c256b053 (patch)
tree780aaf96f01d84f9f421fbb5ec74278fd9c62754 /drivers/mtd/nand
parent631cfdd0520d19b7f4fc13b834fd9c8b46c6dbac (diff)
downloadlinux-a06f2e7cc4de104b14971e08d37f9d08c256b053.tar.xz
mtd: spi-nand: Expose spinand_write_reg_op()
This helper function will soon be used from a vendor driver, let's export it through the spinand.h header. No need for any export, as there is currently no reason for any module to need it. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20240826101412.20644-6-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/spi/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index 04041287b129..b5c6d755ade1 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -34,7 +34,7 @@ static int spinand_read_reg_op(struct spinand_device *spinand, u8 reg, u8 *val)
return 0;
}
-static int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val)
+int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val)
{
struct spi_mem_op op = SPINAND_SET_FEATURE_OP(reg,
spinand->scratchbuf);