diff options
Diffstat (limited to 'drivers/mtd/ubi/debug.h')
-rw-r--r-- | drivers/mtd/ubi/debug.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index cba89fcd1587..eb8985e5c178 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
@@ -127,4 +127,16 @@ static inline int ubi_dbg_chk_gen(const struct ubi_device *ubi) | |||
127 | { | 127 | { |
128 | return ubi->dbg.chk_gen; | 128 | return ubi->dbg.chk_gen; |
129 | } | 129 | } |
130 | |||
131 | static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi) | ||
132 | { | ||
133 | return ubi->dbg.chk_fastmap; | ||
134 | } | ||
135 | |||
136 | static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi) | ||
137 | { | ||
138 | ubi->dbg.chk_fastmap = 1; | ||
139 | } | ||
140 | |||
141 | int ubi_dbg_power_cut(struct ubi_device *ubi, int caller); | ||
130 | #endif /* !__UBI_DEBUG_H__ */ | 142 | #endif /* !__UBI_DEBUG_H__ */ |