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 (Arm)" X-Patchwork-Id: 9849675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C75E60392 for ; Tue, 18 Jul 2017 21:48:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15A8E285F7 for ; Tue, 18 Jul 2017 21:48:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A89B285FD; Tue, 18 Jul 2017 21:48:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3895285F7 for ; Tue, 18 Jul 2017 21:48:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752927AbdGRVpC (ORCPT ); Tue, 18 Jul 2017 17:45:02 -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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: Philipp Zabel --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }