Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6864606imm; Tue, 28 Aug 2018 02:18:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaYdTTIdHlfV6WAN3Ne4Y4e9yQySec0P/AHoeWFKkadjL/ZnCMpC2bJeJKvc6I+tsgpeTH2 X-Received: by 2002:a63:455d:: with SMTP id u29-v6mr679740pgk.342.1535447904247; Tue, 28 Aug 2018 02:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535447904; cv=none; d=google.com; s=arc-20160816; b=Wat3hu1E8mSeRge+pkIFECCJYFETAj4/6kwz/5mSXqGEC0XPZSXAhzGIMdWVVrbuqL SBnSLx0uhRPUW/O6TtMA48uSgJKnKASMMaZYiZx3QI2l9Y0VEaFAhl95ufjpg2FQJuDj Jno6IHs4ozKrhwHicisUqqRG6vAfrRJFNxx/HdgMo9J4eyB9q+FAsSxwKNprbM/pGamC jyZv0yKopdWU0hd5IsOi8/aw3zjiK43xG/1NtFiQfA1LUJ8sWNrx7sPyQeiBkL8SZR1x nKV73pEjhij4mxZi0CopN3miZ6QM910PXxQp4EoA2qrDxg1FIBV7JjTGLOQe9f0KXTxM BEJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=AWk92SdtZuZ+mUoeoyo077dCO1D2dz0lkHOSJzPK+OY=; b=xHAyprh54pii21kvvF/VE2fmtRy5Pbmhl+h5eNeI2RD/qc5++pPxlKnFuqjb4A+OEJ cL3EHtjOtSfz7g9dNh6cWdC/flVV3mvWCcPvSwYU669ZTpEYqWFyA7mY3SuVdfEquRRa 2IuHFbE1knoQRW2ggQxtVI9lTRnSEADXWTvvFAiP1fGNPd+prXZYx/kwhxqTuBU3uQYe UZZzJCZP66xFDqGkdnFrDIR4O1TiCmD+bNZFS5bIKIdzSDPu5qLwOqR9xQd0m8ueLb/j dObaVNUnJ3jQvIp0rDvhz02Vv3NPrmYG2fFL81GMyBkXdrmmYSSYOr15GSwcVKOpBVF7 DxSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si607551pgu.106.2018.08.28.02.18.09; Tue, 28 Aug 2018 02:18:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727560AbeH1NHk (ORCPT + 99 others); Tue, 28 Aug 2018 09:07:40 -0400 Received: from mail.bootlin.com ([62.4.15.54]:37109 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727091AbeH1NHk (ORCPT ); Tue, 28 Aug 2018 09:07:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 177D720789; Tue, 28 Aug 2018 11:16:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-53-19.w90-88.abo.wanadoo.fr [90.88.170.19]) by mail.bootlin.com (Postfix) with ESMTPSA id BA0A720711; Tue, 28 Aug 2018 11:16:55 +0200 (CEST) Date: Tue, 28 Aug 2018 11:16:54 +0200 From: Boris Brezillon To: Rob Herring Cc: linux-kernel@vger.kernel.org, Richard Weinberger , Marek Vasut , linux-mtd@lists.infradead.org, Miquel Raynal , Brian Norris , David Woodhouse Subject: Re: [PATCH] mtd: rawnand: Convert to using %pOFn instead of device_node.name Message-ID: <20180828111654.79fe4755@bbrezillon> In-Reply-To: <20180828015252.28511-33-robh@kernel.org> References: <20180828015252.28511-1-robh@kernel.org> <20180828015252.28511-33-robh@kernel.org> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Aug 2018 20:52:34 -0500 Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Boris Brezillon > Cc: Miquel Raynal > Cc: Richard Weinberger > Cc: David Woodhouse > Cc: Brian Norris > Cc: Marek Vasut > Cc: linux-mtd@lists.infradead.org > Signed-off-by: Rob Herring Acked-by: Boris Brezillon > --- > drivers/mtd/nand/raw/fsl_upm.c | 4 ++-- > drivers/mtd/nand/raw/ndfc.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/mtd/nand/raw/fsl_upm.c b/drivers/mtd/nand/raw/fsl_upm.c > index a88e2cf66e0f..ca82727eca94 100644 > --- a/drivers/mtd/nand/raw/fsl_upm.c > +++ b/drivers/mtd/nand/raw/fsl_upm.c > @@ -184,8 +184,8 @@ static int fun_chip_init(struct fsl_upm_nand *fun, > return -ENODEV; > > nand_set_flash_node(&fun->chip, flash_np); > - mtd->name = kasprintf(GFP_KERNEL, "0x%llx.%s", (u64)io_res->start, > - flash_np->name); > + mtd->name = kasprintf(GFP_KERNEL, "0x%llx.%pOFn", (u64)io_res->start, > + flash_np); > if (!mtd->name) { > ret = -ENOMEM; > goto err; > diff --git a/drivers/mtd/nand/raw/ndfc.c b/drivers/mtd/nand/raw/ndfc.c > index 540fa1a0ea24..b193f373f235 100644 > --- a/drivers/mtd/nand/raw/ndfc.c > +++ b/drivers/mtd/nand/raw/ndfc.c > @@ -174,8 +174,8 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc, > return -ENODEV; > nand_set_flash_node(chip, flash_np); > > - mtd->name = kasprintf(GFP_KERNEL, "%s.%s", dev_name(&ndfc->ofdev->dev), > - flash_np->name); > + mtd->name = kasprintf(GFP_KERNEL, "%s.%pOFn", dev_name(&ndfc->ofdev->dev), > + flash_np); > if (!mtd->name) { > ret = -ENOMEM; > goto err;