mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] mtd: m25p80: explicitly cast name pointer
@ 2015-06-26 18:59 Lucas Stach
  2015-06-26 18:59 ` [PATCH 2/4] commands: digest: fix harmless warning Lucas Stach
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Lucas Stach @ 2015-06-26 18:59 UTC (permalink / raw)
  To: barebox

Fixes:
drivers/mtd/devices/m25p80.c: In function 'm25p_probe':
drivers/mtd/devices/m25p80.c:271:14: warning:
assignment discards 'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/mtd/devices/m25p80.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index c941767..c2e481e 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -268,7 +268,7 @@ static int m25p_probe(struct device_d *dev)
 	else if (data && data->name)
 		flash_name = data->name;
 	else if (dev->id_entry)
-		flash_name = dev->id_entry->name;
+		flash_name = (char *)dev->id_entry->name;
 	else
 		flash_name = NULL; /* auto-detect */
 
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2015-06-29  5:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26 18:59 [PATCH 1/4] mtd: m25p80: explicitly cast name pointer Lucas Stach
2015-06-26 18:59 ` [PATCH 2/4] commands: digest: fix harmless warning Lucas Stach
2015-06-29  5:23   ` Sascha Hauer
2015-06-26 18:59 ` [PATCH 3/4] parameter: always build MAC dev param functions Lucas Stach
2015-06-26 18:59 ` [PATCH 4/4] mtd: spi-nor: depend on SPI Lucas Stach
2015-06-29  5:22   ` Sascha Hauer
2015-06-29  5:17 ` [PATCH 1/4] mtd: m25p80: explicitly cast name pointer Sascha Hauer

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