public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH/TRIVIAL] mtd: Use MTD_BLOCK_MAJOR instead of the magic number
@ 2013-10-08 23:59 Ezequiel Garcia
  2013-10-09  1:15 ` Brian Norris
  2013-10-10  0:48 ` Brian Norris
  0 siblings, 2 replies; 6+ messages in thread
From: Ezequiel Garcia @ 2013-10-08 23:59 UTC (permalink / raw)
  To: linux-mtd; +Cc: trivial, David Woodhouse, Ezequiel Garcia

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 drivers/mtd/mtdblock.c    | 2 +-
 drivers/mtd/mtdblock_ro.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index 2aef5dd..53884cc 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -373,7 +373,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
 
 static struct mtd_blktrans_ops mtdblock_tr = {
 	.name		= "mtdblock",
-	.major		= 31,
+	.major		= MTD_BLOCK_MAJOR,
 	.part_bits	= 0,
 	.blksize 	= 512,
 	.open		= mtdblock_open,
diff --git a/drivers/mtd/mtdblock_ro.c b/drivers/mtd/mtdblock_ro.c
index 92759a9..70d27b4 100644
--- a/drivers/mtd/mtdblock_ro.c
+++ b/drivers/mtd/mtdblock_ro.c
@@ -70,7 +70,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
 
 static struct mtd_blktrans_ops mtdblock_tr = {
 	.name		= "mtdblock",
-	.major		= 31,
+	.major		= MTD_BLOCK_MAJOR,
 	.part_bits	= 0,
 	.blksize 	= 512,
 	.readsect	= mtdblock_readsect,
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-10  0:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 23:59 [PATCH/TRIVIAL] mtd: Use MTD_BLOCK_MAJOR instead of the magic number Ezequiel Garcia
2013-10-09  1:15 ` Brian Norris
2013-10-09 12:02   ` Ezequiel Garcia
2013-10-09 17:06     ` Brian Norris
2013-10-09 22:32       ` Ezequiel Garcia
2013-10-10  0:48 ` Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox