[RESEND PATCH 2/3] mtd: move the enum definition out of struct mtdblk_dev

From: Gu Zheng
Date: Tue Dec 02 2014 - 21:35:52 EST


Move the enum definition out of struct mtdblk_dev, just cleanup.

Signed-off-by: Gu Zheng <guz.fnst@xxxxxxxxxxxxxx>
---
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

.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/