Patchwork drivers/mtd: docg3 trivial renaming

login
register
mail settings
Submitter Robert Jarzmik
Date March 3, 2012, 8:57 p.m.
Message ID <1330808254-17336-1-git-send-email-robert.jarzmik@free.fr>
Download mbox | patch
Permalink /patch/144460/
State Accepted
Commit 31716a5ad32771be8339832b62aa030c263c6dac
Headers show

Comments

Robert Jarzmik - March 3, 2012, 8:57 p.m.
Change the name of the mtd so that it is simpler, and is easier to
cope with by mtdparts.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
 drivers/mtd/devices/docg3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Artem Bityutskiy - March 9, 2012, 12:55 p.m.
On Sat, 2012-03-03 at 21:57 +0100, Robert Jarzmik wrote:
> Change the name of the mtd so that it is simpler, and is easier to
> cope with by mtdparts.
> 
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>

Pushed to l2-mtd.git, thanks!

Patch

diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index ad11ef0a..a0f4087 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -1804,7 +1804,7 @@  static void __init doc_set_driver_info(int chip_id, struct mtd_info *mtd)
 
 	switch (chip_id) {
 	case DOC_CHIPID_G3:
-		mtd->name = kasprintf(GFP_KERNEL, "DiskOnChip G3 floor %d",
+		mtd->name = kasprintf(GFP_KERNEL, "docg3.%d",
 				      docg3->device_id);
 		docg3->max_block = 2047;
 		break;