From: Gu Zheng <guz.fnst@cn.fujitsu.com>
To: <linux-mtd@lists.infradead.org>
Cc: <dwmw2@infradead.org>, <computersforpeace@gmail.com>,
<linux-kernel@vger.kernel.org>,
Gu Zheng <guz.fnst@cn.fujitsu.com>
Subject: [RESEND PATCH 2/3] mtd: move the enum definition out of struct mtdblk_dev
Date: Wed, 3 Dec 2014 10:20:07 +0800 [thread overview]
Message-ID: <547E7357.9040606@cn.fujitsu.com> (raw)
In-Reply-To: <1417052709-22026-1-git-send-email-guz.fnst@cn.fujitsu.com>
Move the enum definition out of struct mtdblk_dev, just cleanup.
Signed-off-by: Gu Zheng <guz.fnst@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
.
next parent reply other threads:[~2014-12-03 2:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1417052709-22026-1-git-send-email-guz.fnst@cn.fujitsu.com>
2014-12-03 2:20 ` Gu Zheng [this message]
2014-12-03 2:20 ` [RESEND PATCH 3/3] mtd/mtdblock: introduce helper macro blktrans_dev_to_mtdblk to wrap the conversion (mtd_blktrans_dev to mtdblk_dev) Gu Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547E7357.9040606@cn.fujitsu.com \
--to=guz.fnst@cn.fujitsu.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox