From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Subject: Re: [PATCH v3 3/5] mtd: aspeed: used a label property Date: Sat, 10 Dec 2016 05:03:42 +0100 Message-ID: <6bc350c3-b162-dc10-4cd3-c32f9a3d4eaf@gmail.com> References: <1481302167-28044-1-git-send-email-clg@kaod.org> <1481302167-28044-4-git-send-email-clg@kaod.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <1481302167-28044-4-git-send-email-clg-Bxea+6Xhats@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: David Woodhouse , Brian Norris , Boris Brezillon , Richard Weinberger , Cyrille Pitchen , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Mark Rutland , Joel Stanley List-Id: devicetree@vger.kernel.org On 12/09/2016 05:49 PM, Cédric Le Goater wrote: > This can be used to easily identify a chip on a system with multiple > chips. I don't think I understand what this patch does. It seems to me like this one should be wrapped into 1/5. > Signed-off-by: Cédric Le Goater > --- > drivers/mtd/spi-nor/aspeed-smc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c > index 99302b0d7786..9119c0ca86b6 100644 > --- a/drivers/mtd/spi-nor/aspeed-smc.c > +++ b/drivers/mtd/spi-nor/aspeed-smc.c > @@ -676,6 +676,8 @@ static int aspeed_smc_setup_flash(struct aspeed_smc_controller *controller, > nor->prepare = aspeed_smc_prep; > nor->unprepare = aspeed_smc_unprep; > > + mtd->name = of_get_property(child, "label", NULL); > + > ret = aspeed_smc_chip_setup_init(chip, r); > if (ret) > break; > -- Best regards, Marek Vasut -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html