[PATCH v2] mtd: mark devname argument of add_mtd_device as const
Sascha Hauer
sha at pengutronix.de
Fri Jul 3 02:44:42 PDT 2015
On Fri, Jul 03, 2015 at 09:51:47AM +0200, Marc Kleine-Budde wrote:
> On 07/03/2015 09:49 AM, Marc Kleine-Budde wrote:
> > This patch fixes the following warning:
> >
> > | 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
> > | flash_name = dev->id_entry->name;
> > | ^
> >
> > Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
>
> This patch applies to master. I can rebase it to -next if needed.
Not necessary. It's already included as:
commit 5f11e80670a7cf9acfca05b91b3ccf054b8457ae
Author: Sascha Hauer <s.hauer at pengutronix.de>
Date: Mon Jun 29 07:04:52 2015 +0200
mtd: Make devname argument to add_mtd_device const
add_mtd_device duplicates the string where necessary, so make it
const.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list