aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/ubi.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r--drivers/mtd/ubi/ubi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 1c3fa18c26a7..46a4763f8e7c 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -95,7 +95,7 @@ enum {
95 95
96/** 96/**
97 * struct ubi_wl_entry - wear-leveling entry. 97 * struct ubi_wl_entry - wear-leveling entry.
98 * @rb: link in the corresponding RB-tree 98 * @u.rb: link in the corresponding (free/used) RB-tree
99 * @ec: erase counter 99 * @ec: erase counter
100 * @pnum: physical eraseblock number 100 * @pnum: physical eraseblock number
101 * 101 *
@@ -104,7 +104,9 @@ enum {
104 * RB-trees. See WL sub-system for details. 104 * RB-trees. See WL sub-system for details.
105 */ 105 */
106struct ubi_wl_entry { 106struct ubi_wl_entry {
107 struct rb_node rb; 107 union {
108 struct rb_node rb;
109 } u;
108 int ec; 110 int ec;
109 int pnum; 111 int pnum;
110}; 112};