summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2014-09-22 11:44:50 +0200
committerRichard Weinberger <richard@nod.at>2015-03-26 22:46:03 +0100
commit5fa7fa5dad0cf8f2b47bb8dca91c605c48d282f6 (patch)
tree1781c7666647ede6e57e8c631b6f1af3ed8361e3 /drivers/mtd/ubi/debug.h
parentUBI: Fastmap: Rework fastmap error paths (diff)
downloadlinux-5fa7fa5dad0cf8f2b47bb8dca91c605c48d282f6.tar.xz
linux-5fa7fa5dad0cf8f2b47bb8dca91c605c48d282f6.zip
UBI: Add initial support for fastmap self checks
Using this debugfs knob fastmap self checks can be controlled. Signed-off-by: Richard Weinberger <richard@nod.at> Reviewed-by: Tanya Brokhman <tlinder@codeaurora.org>
Diffstat (limited to 'drivers/mtd/ubi/debug.h')
-rw-r--r--drivers/mtd/ubi/debug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h
index cba89fcd1587..e99ef37a321e 100644
--- a/drivers/mtd/ubi/debug.h
+++ b/drivers/mtd/ubi/debug.h
@@ -127,4 +127,9 @@ static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi)
{
return ubi->dbg.chk_gen;
}
+
+static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi)
+{
+ return ubi->dbg.chk_fastmap;
+}
#endif /* !__UBI_DEBUG_H__ */