linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	David Woodhouse <dwmw2@infradead.org>,
	linux-mtd@lists.infradead.org
Subject: [PATCH 02/12] mtd: Remove superfluous name casts
Date: Tue, 12 Nov 2013 20:07:15 +0100	[thread overview]
Message-ID: <1384283245-9419-3-git-send-email-geert@linux-m68k.org> (raw)
In-Reply-To: <1384283245-9419-1-git-send-email-geert@linux-m68k.org>

map_info.name is "const char *"

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 drivers/mtd/maps/sun_uflash.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index d210d131fef2..63b52f7080fa 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -61,7 +61,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
 	if (!info)
 		return -ENOMEM;
 
-	info->map.name = (char *) flash->name;
+	info->map.name = flash->name;
 	info->map.bankwidth = flash->width;
 	info->map.phys = res->start;
 	info->map.size = resource_size(res);
diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c
index d467f3b11c96..39cc4181f025 100644
--- a/drivers/mtd/maps/sun_uflash.c
+++ b/drivers/mtd/maps/sun_uflash.c
@@ -75,7 +75,7 @@ int uflash_devinit(struct platform_device *op, struct device_node *dp)
 
 	up->name = of_get_property(dp, "model", NULL);
 	if (up->name && 0 < strlen(up->name))
-		up->map.name = (char *)up->name;
+		up->map.name = up->name;
 
 	up->map.phys = op->resource[0].start;
 
-- 
1.7.9.5


  parent reply	other threads:[~2013-11-12 19:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 19:07 [PATCH 00/12] Remove superfluous name casts Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 01/12] powerpc/windfarm: " Geert Uytterhoeven
2013-11-12 19:07 ` Geert Uytterhoeven [this message]
2013-11-14  1:06   ` [PATCH 02/12] mtd: " Brian Norris
2013-11-12 19:07 ` [PATCH 03/12] mtd: pasemi_nand.c: Remove superfluous name cast Geert Uytterhoeven
2013-11-12 19:12   ` Olof Johansson
2013-11-14  1:08   ` Brian Norris
2013-11-12 19:07 ` [PATCH 04/12] PCI/portdrv: " Geert Uytterhoeven
2013-12-07 22:35   ` Bjorn Helgaas
2013-11-12 19:07 ` [PATCH 05/12] pcmcia: Remove superfluous name casts Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 06/12] staging: " Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 07/12] staging: r8188eu: Remove superfluous name cast Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 08/12] staging: usbip: " Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 09/12] usb: core: Remove superfluous name casts Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 10/12] mtd: ms02-nv: Remove superfluous name cast Geert Uytterhoeven
2013-11-14  1:09   ` Brian Norris
2013-11-12 19:07 ` [PATCH 11/12] usb: gadget: Remove superfluous name casts Geert Uytterhoeven
2013-11-12 19:07 ` [PATCH 12/12] usb: host: " Geert Uytterhoeven

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=1384283245-9419-3-git-send-email-geert@linux-m68k.org \
    --to=geert@linux-m68k.org \
    --cc=akpm@linux-foundation.org \
    --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;
as well as URLs for NNTP newsgroup(s).