Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6556026imm; Mon, 27 Aug 2018 19:00:00 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda3eByl3JQSznwvGSAiCAgmyks7/lXmC3+NiDyICByA6+X3Q18qsvvFjpPopnR99/zhdwnM X-Received: by 2002:a62:45d2:: with SMTP id n79-v6mr16725618pfi.137.1535421600428; Mon, 27 Aug 2018 19:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535421600; cv=none; d=google.com; s=arc-20160816; b=AELMqU8CqriHA+vUsy7lx6T3slqFms3SoZ7t2S8Zt/30odLGsT7hAL/8YBZ0CXBKQu fh4sxerULJ3qsFxQcea5m5lheKRrVDXZTNuXQVMVITVRVVMOnoJoH8ppbAiZ0DFPxzXk KeRCJ/j1SHXjaR0zezleqHWfpDDYMbFRAGI+VAakwP6ZYhPXIANGO3/GZlT2Yrmd6QJy 0OgpTMwbWGMvtiXKt1KyGuT/0du5mRxhg2ojpR3jDHy+kGcCQAVV55g1AnSwJb8CI4GC 6PdnjgIbmdhpRJ4g4P4PAY9lJlsDng/SwhceyWqd8sRStrruZW/KiojlYzPUPKwWNUQB xMDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=wPIunOIYyix8Z5l2mPd0qgkLBqpPQfTEbmG6JutqlK0=; b=aJlkMA425l0ByX2b50R/DjlGNKxnxvIF8SxqFv0FT6v8IXUOT0OA1FpixSpyaSTEDU DgB/GigI4stnl5IP80f3R+5bMmQltF6cUXEvUUUj3/wn46EE+ZR2+V8Yc5vZjyXw+7kQ grxO7/LPAzMsHzs3rzD8l/zcEZ8junMK8vlv4/2/YqJ3NvuGn6gkFCP8PMoY/K3ItmKH sxAKnl2NpkGY3JFX30/ZrkCU+US+nNhAnY4e0eDUhAso9Y2g6GLiPumRLMKt9pidhygF qsWCn0oUHV4hqrJ/V6Xv7YhwKcpIrEzQS7v3vmVpvjjf4Zn68HljJLvBHUamSQTsFjHS pJeg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z127-v6si883119pgb.455.2018.08.27.18.59.45; Mon, 27 Aug 2018 19:00:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727879AbeH1FoR (ORCPT + 99 others); Tue, 28 Aug 2018 01:44:17 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33484 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727516AbeH1FoP (ORCPT ); Tue, 28 Aug 2018 01:44:15 -0400 Received: by mail-oi0-f67.google.com with SMTP id 8-v6so52713oip.0 for ; Mon, 27 Aug 2018 18:55:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wPIunOIYyix8Z5l2mPd0qgkLBqpPQfTEbmG6JutqlK0=; b=V8dGifi0z8Qg8vDikQoS7n9TwbXuNeakz973UPkBf5hlQNKeuVk23y8XeXs7u1jPbo ydNmJcRS2r4x8CmhLHeExdn/agmPJOX0Y0sy6Yml937FaVQwnURl5x9DFwl/EkVczgWK ef0qLYvrJBYUXmnppo0jZ3mRRKTivkwwQTSjMicIZRo0YqMeWFCLU6oxJC4TJUckjkbH DGgeyNi6OOfIlnfYCY7ckL1idK7IvIDgNevBYUSDS/MAOFzSnAtPOlKaZU2vh6KnepBc rxsMGhB4VDJegwiMAW+nbkM4lX8o1/KJQCUaSM8kPHZCfke/2HQIyC0QqbRsN8T+79HG 9oPQ== X-Gm-Message-State: APzg51DNFuXtu/Ax3unZqJapzntZsRmXsk7IJLdJSSEom/1TQNVI3Q+S cqsNVpK5G1WVEn4YknFqOj4EElY= X-Received: by 2002:aca:e2d3:: with SMTP id z202-v6mr957021oig.121.1535421299921; Mon, 27 Aug 2018 18:54:59 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id n71-v6sm1652696oig.48.2018.08.27.18.54.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 18:54:59 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Boris Brezillon , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-mtd@lists.infradead.org Subject: [PATCH] mtd: rawnand: Convert to using %pOFn instead of device_node.name Date: Mon, 27 Aug 2018 20:52:34 -0500 Message-Id: <20180828015252.28511-33-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180828015252.28511-1-robh@kernel.org> References: <20180828015252.28511-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.17.1