From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UCpPf-00067W-Gv for barebox@lists.infradead.org; Tue, 05 Mar 2013 10:48:04 +0000 Date: Tue, 5 Mar 2013 11:48:01 +0100 From: Sascha Hauer Message-ID: <20130305104801.GS1906@pengutronix.de> References: <1362392034-1908-1-git-send-email-s.hauer@pengutronix.de> <1362392034-1908-10-git-send-email-s.hauer@pengutronix.de> <201303042142.55844.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201303042142.55844.jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 09/10] mtd: nand: Add bbt parameter To: Juergen Beisert Cc: barebox@lists.infradead.org On Mon, Mar 04, 2013 at 09:42:55PM +0100, Juergen Beisert wrote: > Sascha Hauer wrote: > > [...] > > --- a/drivers/mtd/nand/nand_base.c > > +++ b/drivers/mtd/nand/nand_base.c > > @@ -1688,6 +1688,23 @@ static int mtd_set_erasebad(struct device_d *dev, > > struct param_d *param, return 0; > > } > > > > +static const char *mtd_get_bbt_type(struct device_d *dev, struct param_d > *p) +{ > > + struct mtd_info *mtd = container_of(dev, struct mtd_info, class_dev); > > + struct nand_chip *chip = mtd->priv; > > + char *str; > > Should also be "const char *str" ok. 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 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox