summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-11-24 20:36:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-25 06:30:54 +0100
commit8248621078de084fd991ce67e823ea78eb6edb83 (patch)
treec4cb172df7284bf0c685f43fbb07cb8de40651d1 /include
parentfa9179444c36f9daf5010215cf8e4dcb3bd1ffb2 (diff)
downloadbarebox-8248621078de084fd991ce67e823ea78eb6edb83.tar.gz
barebox-8248621078de084fd991ce67e823ea78eb6edb83.tar.xz
mtd: Add hook to fix up kernel partitions
Some drivers have special requirements for fixing up the partition nodes for the kernel. This adds a hook to struct mtd_info that can be used by drivers to replace the generic fixup with a special one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/mtd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 0e2ff4526d..0d977fea25 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -206,6 +206,8 @@ struct mtd_info {
int (*_block_markbad) (struct mtd_info *mtd, loff_t ofs);
int (*_block_markgood) (struct mtd_info *mtd, loff_t ofs);
+ int (*of_fixup)(struct mtd_info *mtd, struct device_node *root);
+
/* ECC status information */
struct mtd_ecc_stats ecc_stats;
/* Subpage shift (NAND) */