]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mtd: Add function prototype for mtd_read_oob_bf(...)
authorTom Rini <trini@konsulko.com>
Wed, 2 Jul 2025 01:06:09 +0000 (19:06 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 18:19:04 +0000 (12:19 -0600)
The function mtd_read_oob_bf is called by cmd/nand.c but does not have a
prototype in any header. Add this to include/linux/mtd/mtd.h as that is
the most logical place currently.

Fixes: 1fac57720719 ("nand: Add a watch command")
Signed-off-by: Tom Rini <trini@konsulko.com>
include/linux/mtd/mtd.h

index 3ffcd40807d004acef0affe25386d6118fe98451..1f97bc4fe116e0d4b82abeacecf092f334fc189d 100644 (file)
@@ -438,6 +438,7 @@ static inline int mtd_bind(struct udevice *dev, struct mtd_info **mtd)
 #endif
 
 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
+int mtd_read_oob_bf(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
 int mtd_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops);
 
 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,