From patchwork Wed Aug 29 19:06:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 145467 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1018096ljw; Wed, 29 Aug 2018 12:06:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZHvTWPimOKicsZuRAdKHfKYVU4ZfUo/oQO+nsxdkarSauauvAT9Bg0XoWXZGDHS/YG/eQR X-Received: by 2002:a62:6948:: with SMTP id e69-v6mr7165741pfc.166.1535569565622; Wed, 29 Aug 2018 12:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535569565; cv=none; d=google.com; s=arc-20160816; b=Ixi0cdZ8bYxpwvSpNgk6vjmMxcZ69zimyFMDhFHJDwTPhRQgGG/KvGwWWLXDlbiy2X HcGBAg1DFJMBjLauGYFUGXx5LnwQKU74AepkUAVVyJBR+9a9GPURmsiBoAR2nXibxx9t p/cd7vXZbqXGuRGssDyuT55VmcbjZjBWsK48GOnxbIizz6D8qqMlJNanYoUypMI/+qwb FaIedfith9uWvM4pNHdBdrgJpruNgV8lIomuqlLJK71Z29bm2ouuFLgVmuVVZDIJFKmE RvPpKMxb7VWB8JqC4POT9YlCai9a+w0zzBOqGh3d09FaiN2VNXHqj4mVUH6BO80UaLLI YPAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zEveqf8BwEa1CUsTPvCJk1PmvPcUpOVrjiiX5mHBSEY=; b=ksMPO3/L05uvUFEuCazytst2jz+9xbR9CPpOrJNhlcz5Y4zrjsWT28MtdPWlB7G/8w VKb2cepNjyek1yqNzLtXwLVJwk9LuVXb/G6k0SU1TAlh+nFsvPkcsBhJT+H65gt0ULwW F0CWNvYdA6I7bBzQwvMBOdY5TuB3Ckx0ra7nnaFyzktsHuv7sXIUNNjDQQDuFAamZUKv Lr2RSNJ7+g3nU/gEL40cmqHQRHn9MeIMg0oFb86eymUzKkzvv6ghnFrqy0plAKI6eSN1 OeytWicnOV1ZCASSe81GlbYve6Cw3vMtbncD4HL6cPXpps6xkmsnrQfB85if3TozBkqY fzOA== 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 u2-v6si4302383pge.585.2018.08.29.12.06.05; Wed, 29 Aug 2018 12:06:05 -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 S1728266AbeH2XES (ORCPT + 32 others); Wed, 29 Aug 2018 19:04:18 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:39845 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbeH2XES (ORCPT ); Wed, 29 Aug 2018 19:04:18 -0400 Received: by mail-oi0-f68.google.com with SMTP id c190-v6so11083326oig.6 for ; Wed, 29 Aug 2018 12:06:02 -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; bh=zEveqf8BwEa1CUsTPvCJk1PmvPcUpOVrjiiX5mHBSEY=; b=ajRrV2wvTvdnEnEOl46TcxtaUcYEIIEZDdxYTMchaezw9N4gSBT40w8PfgKUQBx/Hb o0MedFUJC3mSdJam4tsbTGKF68njm9lpUKjgeg1YsQnc9Dz3kfEXK28eU7pwWFMQcIaV z1EjOcHmMIyplJ2PQCxuJMox7IwZZ9H9esIT9RrUE045R9ftMl5lEsSSbyKY94ThwHtY r9Vg7rZSyT4VZljGOaw4gb2HQzbrFtkavErQ2fOqtnBIrBHoLI5XtK9vEkkjLy1UFMUf mNs2ZPQXJO+76gQTY57ZWGabciFu5w/owoI9erfZQVePvUwU7/FnjVdkp6C7Sc8T42AO 2gEQ== X-Gm-Message-State: APzg51DN5hNHxSs06RA+wEyiN78Yovtv6cBQVHEC1OZPZLF6cqAMGwWL 9pSMP81B37kLu5IA2tuURbxQoI4= X-Received: by 2002:aca:44c5:: with SMTP id r188-v6mr4269632oia.280.1535569562233; Wed, 29 Aug 2018 12:06:02 -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 s133-v6sm6011840oie.4.2018.08.29.12.06.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 12:06:01 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, David Woodhouse Cc: Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-mtd@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] mtd: Convert to using %pOFn instead of device_node.name Date: Wed, 29 Aug 2018 14:06:00 -0500 Message-Id: <20180829190600.25529-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 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: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linux-mtd@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Rob Herring --- One more %pOFn conversion for MTD. Please apply to MTD tree. drivers/mtd/devices/powernv_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/mtd/devices/powernv_flash.c b/drivers/mtd/devices/powernv_flash.c index 33593122e49b..22f753e555ac 100644 --- a/drivers/mtd/devices/powernv_flash.c +++ b/drivers/mtd/devices/powernv_flash.c @@ -212,7 +212,7 @@ static int powernv_flash_set_driver_info(struct device *dev, * Going to have to check what details I need to set and how to * get them */ - mtd->name = of_get_property(dev->of_node, "name", NULL); + mtd->name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn", dev->of_node); mtd->type = MTD_NORFLASH; mtd->flags = MTD_WRITEABLE; mtd->size = size;