From patchwork Tue Jul 18 21:43:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 108200 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6480297qge; Tue, 18 Jul 2017 14:45:07 -0700 (PDT) X-Received: by 10.99.2.213 with SMTP id 204mr3825004pgc.180.1500414307341; Tue, 18 Jul 2017 14:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414307; cv=none; d=google.com; s=arc-20160816; b=OW4CKFKA1m3TdGzGsfrfHxMoIYiUENk2H7ZL5l7WsL0szhGS+zTTKA/yGCcJ3nxxZS Zl2dneD/XHfsT2HlizfgtJhYivPvIyGOi/ZNUGtCcB4XhNRuhcP9BDXqwH3jdqotP/n4 bqxYplBZ7ipoj6Z1bUqWfcdHfo9pgTLGw3GXDVhJPzADEbQhtmht/pOSC0y1RFwebtNJ v516DvjUyXa00T6zTAWANSG9OP5PrMqw0/HRiCK341e1uuRRBSe/Dys8qLeaBov+dN33 yEdbKqL707BJ76Gn0J3gp38ZnXotVWXqnOhrXYywOr8hroRh+citL9r8fwI7uyGpiObu 7heg== 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=sk5jopWiw2lVK+MYBwTSBnNAPnkCrTMmvMLFSU9qkB8=; b=dxjMvZXvyURFf5Y3Cq2yKBQZR12ltOTcGJvVIKR2TzPbqJkMSU6CVIrsMUEzixxc71 lwDP6A+Gkh1pCibKorGXY02SKE9Aa4UkDsLUCShBV1vV1cP74WZzvXxg8lg0kNC/4t14 VgMC2gcv7rSzwjnz4DzxO0KY9kQK0MYghD/yZbDZD+nCxRDfk31pOHh3ZrCwDXpB1nze JSbP015XhSTD4JxRSQGxHo1hHsjJkFJTMZ5OWLaGiTV/0Dql0Cb0PxO3OTMSRw34mD1N DME6F1opRFO85RJUAvy+muW7Qt88qJCsjRWEXVHwkKa3oc1Px+N2jiBA/FqdQ73HYkgv ihiQ== 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 100si2648340pld.33.2017.07.18.14.45.07; Tue, 18 Jul 2017 14:45:07 -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 S1752948AbdGRVpD (ORCPT + 25 others); Tue, 18 Jul 2017 17:45:03 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35215 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbdGRVo7 (ORCPT ); Tue, 18 Jul 2017 17:44:59 -0400 Received: by mail-pg0-f67.google.com with SMTP id d193so4333080pgc.2; Tue, 18 Jul 2017 14:44:59 -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=sk5jopWiw2lVK+MYBwTSBnNAPnkCrTMmvMLFSU9qkB8=; b=ScIGQaF00Y7IL6XhxunaFkgqLyVMevzMblo1RJT8hlQSsZl0XgmI9aBekkCY0o2Hv9 7G38jEGBpTD98neJ+ewNnarfwrN7nE3/nI2jzIJNI5je5egpVs0xdGeGKw8syayxksTI VRK6jJgloauJFk68t1nE7oEc2snCNkKkmPhuBsd3c9ZdgjD75cXpfcRgMXfrwOOQqCZI lJzaCy7P3qPH0lHgbd3Lh6pohZEYAwPEjOUtG9rjTM6JuagLOFJtP0shPOvCW0wfK83L QPvTzjMsAtwTRaevYO4pwMlD0lMHuu19pq0bxje+tkigGjAqV7Lkw5VgYf3mewmOw+uI 7GTw== X-Gm-Message-State: AIVw1107X4IzKHDKUMwySUk6cL71N01b6QoZW4uLOTsugChklxxDDllu c3fP+4fr4KcofA== X-Received: by 10.84.128.14 with SMTP id 14mr3886903pla.285.1500414298896; Tue, 18 Jul 2017 14:44:58 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.44.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:58 -0700 (PDT) From: Rob Herring To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Sangbeom Kim , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Philipp Zabel , linux-samsung-soc@vger.kernel.org Subject: [PATCH] regulator: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:26 -0500 Message-Id: <20170718214339.7774-46-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Liam Girdwood Cc: Mark Brown Cc: Sangbeom Kim Cc: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz Cc: Philipp Zabel Cc: linux-samsung-soc@vger.kernel.org --- drivers/regulator/core.c | 4 ++-- drivers/regulator/max1586.c | 2 +- drivers/regulator/s5m8767.c | 4 ++-- drivers/reset/reset-socfpga.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) -- 2.11.0 diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index e567fa54980b..d79ba9af9352 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -204,8 +204,8 @@ static struct device_node *of_get_regulator(struct device *dev, const char *supp regnode = of_parse_phandle(dev->of_node, prop_name, 0); if (!regnode) { - dev_dbg(dev, "Looking up %s property in node %s failed\n", - prop_name, dev->of_node->full_name); + dev_dbg(dev, "Looking up %s property in node %pOF failed\n", + prop_name, dev->of_node); return NULL; } return regnode; diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c index 6779c2b53674..66bbaa999433 100644 --- a/drivers/regulator/max1586.c +++ b/drivers/regulator/max1586.c @@ -169,7 +169,7 @@ static int of_get_max1586_platform_data(struct device *dev, if (of_property_read_u32(np, "v3-gain", &pdata->v3_gain) < 0) { - dev_err(dev, "%s has no 'v3-gain' property\n", np->full_name); + dev_err(dev, "%pOF has no 'v3-gain' property\n", np); return -EINVAL; } diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 383cd7533721..4836947e1521 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@ -590,8 +590,8 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev, if (of_property_read_u32(reg_np, "op_mode", &rmode->mode)) { dev_warn(iodev->dev, - "no op_mode property property at %s\n", - reg_np->full_name); + "no op_mode property property at %pOF\n", + reg_np); rmode->mode = S5M8767_OPMODE_NORMAL_MODE; } diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c index 07224c019892..c60904ff40b8 100644 --- a/drivers/reset/reset-socfpga.c +++ b/drivers/reset/reset-socfpga.c @@ -109,8 +109,8 @@ static int socfpga_reset_probe(struct platform_device *pdev) * Do not continue, when we encounter an old DT. */ if (!of_find_property(pdev->dev.of_node, "#reset-cells", NULL)) { - dev_err(&pdev->dev, "%s missing #reset-cells property\n", - pdev->dev.of_node->full_name); + dev_err(&pdev->dev, "%pOF missing #reset-cells property\n", + pdev->dev.of_node); return -EINVAL; }