diff options
author | Martin Kurbanov <mmkurbanov@salutedevices.com> | 2025-02-10 17:34:13 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-02-10 15:52:59 +0100 |
commit | 07d0aa9393abc8fd64d0a174edfb68c5808187e4 (patch) | |
tree | a4bff6c63f297747294852a755a49b92e1583600 /include/linux/mtd/spinand.h | |
parent | 499a4b16a4869a901a9bc601bc1e0b8f60151e93 (diff) |
mtd: spinand: make spinand_{read,write}_page global
Change these functions from static to global so that to use them later
in OTP operations. Since reading OTP pages is no different from reading
pages from the main area.
Signed-off-by: Martin Kurbanov <mmkurbanov@salutedevices.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux/mtd/spinand.h')
-rw-r--r-- | include/linux/mtd/spinand.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mtd/spinand.h b/include/linux/mtd/spinand.h index 0da8a1c7740e..34ddd2441fc9 100644 --- a/include/linux/mtd/spinand.h +++ b/include/linux/mtd/spinand.h @@ -588,4 +588,10 @@ int spinand_upd_cfg(struct spinand_device *spinand, u8 mask, u8 val); int spinand_write_reg_op(struct spinand_device *spinand, u8 reg, u8 val); int spinand_select_target(struct spinand_device *spinand, unsigned int target); +int spinand_read_page(struct spinand_device *spinand, + const struct nand_page_io_req *req); + +int spinand_write_page(struct spinand_device *spinand, + const struct nand_page_io_req *req); + #endif /* __LINUX_MTD_SPINAND_H */ |