Skip to content

Commit a06f2e7

Browse files
committed
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 <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 631cfdd commit a06f2e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/mtd/nand/spi/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static int spinand_read_reg_op(struct spinand_device *spinand, u8 reg, u8 *val)
3434
return 0;
3535
}
3636

37-
static int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val)
37+
int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val)
3838
{
3939
struct spi_mem_op op = SPINAND_SET_FEATURE_OP(reg,
4040
spinand->scratchbuf);

include/linux/mtd/spinand.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ int spinand_match_and_init(struct spinand_device *spinand,
533533
enum spinand_readid_method rdid_method);
534534

535535
int spinand_upd_cfg(struct spinand_device *spinand, u8 mask, u8 val);
536+
int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val);
536537
int spinand_select_target(struct spinand_device *spinand, unsigned int target);
537538

538539
#endif /* __LINUX_MTD_SPINAND_H */

0 commit comments

Comments
 (0)