aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 14:14:22 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-21 04:34:41 -0400
commit05a3cb7dcec5a15ed9b18a5317ba2075355c7547 (patch)
tree2bdcd3fb8271a193027c551baa5ff971fade02d4 /drivers/mtd
parentd36e59e69b8be536c55d6118630f0221cee5ccee (diff)
UBI: introduce UBI_ALL constant
Joel will use it in his 'ubi_flush()' extention to specify all eraseblocks. Also amend the comment for UBI_UNKNOWN - it is used beyond attaching info structure now. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/ubi.h10
1 files changed, 5 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/*