[RESEND PATCH 2/3] mtd: move the enum definition out of struct mtdblk_dev
Gu Zheng
guz.fnst at cn.fujitsu.com
Tue Dec 2 18:20:07 PST 2014
Move the enum definition out of struct mtdblk_dev, just cleanup.
Signed-off-by: Gu Zheng <guz.fnst at cn.fujitsu.com>
---
drivers/mtd/mtdblock.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index bb4c14f..acc00f1 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -34,6 +34,11 @@
#include <linux/mutex.h>
#include <linux/major.h>
+enum CACHE_STATES {
+ STATE_EMPTY,
+ STATE_CLEAN,
+ STATE_DIRTY
+};
struct mtdblk_dev {
struct mtd_blktrans_dev mbd;
@@ -42,7 +47,7 @@ struct mtdblk_dev {
unsigned char *cache_data;
unsigned long cache_offset;
unsigned int cache_size;
- enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state;
+ enum CACHE_STATES cache_state;
};
/*
--
1.7.7
.
More information about the linux-mtd
mailing list