From patchwork Tue Jul 18 21:43:16 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: 108220 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6486823qge; Tue, 18 Jul 2017 14:53:04 -0700 (PDT) X-Received: by 10.99.119.139 with SMTP id s133mr2069750pgc.256.1500414784338; Tue, 18 Jul 2017 14:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414784; cv=none; d=google.com; s=arc-20160816; b=Vj26zDgIRSzTpRvuegEOSlkoyjivT78JYbhE+4YXcFoFWmR3APO3AMwZtQaIv8mDHY Xws5CKbOQ87bOEVCtPPFq1+Vn4tDCz9BJaDIDuN6qn98zBdh1iE5qZgRTAD26RDetuww oNud6kJJ83GwvZY5kLVC2FziPH2ucu+v4oL9F6TTXWK6twS4QHltvMtUbPSPsasWzM24 zr6YpaiZUt2mZqA9s+ALnXG+NJIix/JyM76iDXVcf2c3Ss315TYnt8BrWCQhwqgcSBwX bXPgwIKVLTalPwSX7BdeyB/SKL9e6q+WF1AgzRHO/LnRRP/do8tTKl5VlRq5kDeernth j2QA== 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=IKbUrDrleDnbYJA9ZIRRpWlzhDSf7Dfd9JzUKUNrNF8=; b=F7hDuk4NjsO0rVK4wq4uafm7Z+8/0LqIYSmaJXJYaC6Ot87jK4oDnbC77ZbEDoQ7ng s81YAjr/JcUn3kR+GJx1iFmIrIerLFJI6/g/NV/T6aGPANkQRaYixnwXrwPOBKEbzkKv 0z7k6j/PiY1byjA/VdZ5u+kKi6VeNNHU28zxmKA2IgFvKU0xLvl0ZfhZF1BVXuDxJQ0M Bu20b9TTHcV3s/hkTutu6cQeLJfKWUmJRqAcaLeFjA3bglc7NAxgCu755C0CRKqsGNNg uNptI0VFHKYUuunG2DyJJ9UDCelAMwNWBouGLqjghitqQlwyHVVPABdNXpWRfFPaiyen PBIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 j10si2606695pfc.13.2017.07.18.14.53.03; Tue, 18 Jul 2017 14:53:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573AbdGRVxA (ORCPT + 6 others); Tue, 18 Jul 2017 17:53:00 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35057 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752809AbdGRVon (ORCPT ); Tue, 18 Jul 2017 17:44:43 -0400 Received: by mail-pf0-f194.google.com with SMTP id q85so4059681pfq.2; Tue, 18 Jul 2017 14:44:43 -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=640UF2g7V37E8xP7JC5QmfQmIYXOg4iZGZQhV3DNTxU=; b=COdwv0fd/zniwdHSIs/ydCvyDVQm/AooYFsybLP260+EZFMxCE2VX4/xq+FUeybSKV e75KeCL5x8RADeylojhWboJXjELHwYAHK78IzfCvFn2rqFAxOIUGziLJGp3OhV+FFFeM J3j6Yvj23kdiMPPxRiEjioFkwi8rzMVhDnf/71gNR7OOQRjcspFsRm7tfD4IS1agF8fY ujGOrxL0KhlubvNWCKjq847ydd7VNk8rWEOccl4sHyBsh8gfXVeh9Db77Be77hBy0ff0 nY/U9J6HQpv1G++UwQZKUjf13FVOIULkrkJHG7Q+u96YeIrl1CHBuQM6/Nh8zWX4s9nY dflA== X-Gm-Message-State: AIVw113s5+lUwv/E4Eh6swE4zSdD/jrBHHm76jvcSzoKfJBrgqtuMlDf SUAK2MeYQKDUzXnUC3K93Q== X-Received: by 10.99.8.66 with SMTP id 63mr3822212pgi.15.1500414283166; Tue, 18 Jul 2017 14:44:43 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:42 -0700 (PDT) From: Rob Herring To: Ulf Hansson Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Ludovic Desroches , Jan Glauber , David Daney , "Steven J. Hill" , linux-mmc@vger.kernel.org Subject: [PATCH] mmc: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:16 -0500 Message-Id: <20170718214339.7774-36-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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: Ulf Hansson Cc: Ludovic Desroches Cc: Jan Glauber Cc: David Daney Cc: "Steven J. Hill" Cc: linux-mmc@vger.kernel.org --- drivers/mmc/core/core.c | 8 ++++---- drivers/mmc/host/atmel-mci.c | 4 ++-- drivers/mmc/host/cavium.c | 6 ++---- 3 files changed, 8 insertions(+), 10 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Tested-by: Steven J. Hill diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 26431267a3e2..6b4117615ad6 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1137,11 +1137,11 @@ int mmc_of_parse_voltage(struct device_node *np, u32 *mask) voltage_ranges = of_get_property(np, "voltage-ranges", &num_ranges); num_ranges = num_ranges / sizeof(*voltage_ranges) / 2; if (!voltage_ranges) { - pr_debug("%s: voltage-ranges unspecified\n", np->full_name); + pr_debug("%pOF: voltage-ranges unspecified\n", np); return 0; } if (!num_ranges) { - pr_err("%s: voltage-ranges empty\n", np->full_name); + pr_err("%pOF: voltage-ranges empty\n", np); return -EINVAL; } @@ -1153,8 +1153,8 @@ int mmc_of_parse_voltage(struct device_node *np, u32 *mask) be32_to_cpu(voltage_ranges[j]), be32_to_cpu(voltage_ranges[j + 1])); if (!ocr_mask) { - pr_err("%s: voltage-range #%d is invalid\n", - np->full_name, i); + pr_err("%pOF: voltage-range #%d is invalid\n", + np, i); return -EINVAL; } *mask |= ocr_mask; diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 97de2d32ba84..b7c1cd384306 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -665,8 +665,8 @@ atmci_of_init(struct platform_device *pdev) for_each_child_of_node(np, cnp) { if (of_property_read_u32(cnp, "reg", &slot_id)) { - dev_warn(&pdev->dev, "reg property is missing for %s\n", - cnp->full_name); + dev_warn(&pdev->dev, "reg property is missing for %pOF\n", + cnp); continue; } diff --git a/drivers/mmc/host/cavium.c b/drivers/mmc/host/cavium.c index 3686d77c717b..27fb625cbcf3 100644 --- a/drivers/mmc/host/cavium.c +++ b/drivers/mmc/host/cavium.c @@ -957,14 +957,12 @@ static int cvm_mmc_of_parse(struct device *dev, struct cvm_mmc_slot *slot) ret = of_property_read_u32(node, "reg", &id); if (ret) { - dev_err(dev, "Missing or invalid reg property on %s\n", - of_node_full_name(node)); + dev_err(dev, "Missing or invalid reg property on %pOF\n", node); return ret; } if (id >= CAVIUM_MAX_MMC || slot->host->slot[id]) { - dev_err(dev, "Invalid reg property on %s\n", - of_node_full_name(node)); + dev_err(dev, "Invalid reg property on %pOF\n", node); return -EINVAL; }