|
@@ -351,17 +351,7 @@ int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
|
|
|
const u_char *buf);
|
|
|
|
|
|
int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
|
|
|
-
|
|
|
-static inline int mtd_write_oob(struct mtd_info *mtd, loff_t to,
|
|
|
- struct mtd_oob_ops *ops)
|
|
|
-{
|
|
|
- ops->retlen = ops->oobretlen = 0;
|
|
|
- if (!mtd->_write_oob)
|
|
|
- return -EOPNOTSUPP;
|
|
|
- if (!(mtd->flags & MTD_WRITEABLE))
|
|
|
- return -EROFS;
|
|
|
- return mtd->_write_oob(mtd, to, 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,
|
|
|
struct otp_info *buf);
|