aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/ubi/ubi.h10
-rw-r--r--include/linux/mtd/ubi.h3
2 files changed, 8 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 5e1182ca289b..38cfb0f2adf2 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -65,7 +65,10 @@
65/* Background thread name pattern */ 65/* Background thread name pattern */
66#define UBI_BGT_NAME_PATTERN "ubi_bgt%dd" 66#define UBI_BGT_NAME_PATTERN "ubi_bgt%dd"
67 67
68/* This marker in the EBA table means that the LEB is um-mapped */ 68/*
69 * This marker in the EBA table means that the LEB is um-mapped.
70 * NOTE! It has to have the same value as %UBI_ALL.
71 */
69#define UBI_LEB_UNMAPPED -1 72#define UBI_LEB_UNMAPPED -1
70 73
71/* 74/*
@@ -81,10 +84,7 @@
81 */ 84 */
82#define UBI_PROT_QUEUE_LEN 10 85#define UBI_PROT_QUEUE_LEN 10
83 86
84/* 87/* The volume ID/LEB number/erase counter is unknown */
85 * When a field of the attaching information has this value - its real value is
86 * unknown.
87 */
88#define UBI_UNKNOWN -1 88#define UBI_UNKNOWN -1
89 89
90/* 90/*
diff --git a/include/linux/mtd/ubi.h b/include/linux/mtd/ubi.h
index 9838dce7e235..f636f5df883f 100644
--- a/include/linux/mtd/ubi.h
+++ b/include/linux/mtd/ubi.h
@@ -25,6 +25,9 @@
25#include <linux/types.h> 25#include <linux/types.h>
26#include <mtd/ubi-user.h> 26#include <mtd/ubi-user.h>
27 27
28/* All voumes/LEBs */
29#define UBI_ALL -1
30
28/* 31/*
29 * enum ubi_open_mode - UBI volume open mode constants. 32 * enum ubi_open_mode - UBI volume open mode constants.
30 * 33 *