From patchwork Tue Jul 18 21:43:17 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: 108209 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6481932qge; Tue, 18 Jul 2017 14:46:56 -0700 (PDT) X-Received: by 10.98.212.91 with SMTP id u27mr3742857pfl.157.1500414416672; Tue, 18 Jul 2017 14:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414416; cv=none; d=google.com; s=arc-20160816; b=wWUTqwRIn/VW1vdg4y2/xiNR/nxghcbLNg3uxKCYH8QlxG5tu/7h7gBwlpS2JbrUFH u9dsLuM1xcQIk+ifqiPfU0kHmGrzm23pIcHNlCAjZkD6MYjWAbzYBSVu2+47YXpM3wT/ g9oRsESJvRIHznZ69DgczoQa09oILMT+iW+SLmi32DRPAjvJgVgX1NXTWc8EhIizxeQV p/NxvNL8PXhemjV88SNDwOBJeltVPpx4FpzXMEW/9WN6oJ1J9l67/bzw7ONShB9JDhC/ teosrZk7CmdaHmcC4lbQ4hqFlRUGJsYcXRo+9qAxS7aB4Ot+2sXyG4+K03UL5uBz1/ku Zxmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=bWSyKmUhiS6d2QPhdIC5Cr0t0qxWXNhkmfTbREqlQDo=; b=wSDCaR35ln8wwctuOrNRI88OJFQk5x1ORV/JIBKpf7X4NJDHE7JJeYuDwCZmMgnV7f XnmLIZ2Vh4x8upJfEM68rEOL06cnBhddPz5RxMa5UH7Nc9i/6Ml7VmN+5u7Q36a+7nlQ E3boYO77zyqhAYoaiG17KxRE3HUbBIn7d7FqNTI2/DwYGg604Pq0NPYsgYtaPKJYVJNQ +MrJdl1WwI/pAjXl38Q55tu0hc0ARWAI92nSTacMFNP6ig3dEuk0oeWqidbY042VT/sX xlehyNiYxtvhFadf/lreaWhB7hImmTcNflZcwrLo8ELjAGj6qwem4W9xWfGpZe0Qm6AL fo0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=IvlYsKEG; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id b64si2661879pli.191.2017.07.18.14.46.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:46:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.b=IvlYsKEG; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=bWSyKmUhiS6d2QPhdIC5Cr0t0qxWXNhkmfTbREqlQDo=; b=Ivl YsKEGsbxsgieI6gCmUNBkBt76OVQpLbtS0iQQ1ptoYi0mKWvhEHt/yaH7tkW6dwIbQtKLW72HRg7V HQ6Cco1ivfvIOheNYmJFv+Sq9frsouu215ZPd/Q4+zSbPvI7yW472HCn0aEHKa4bT8BnvZDrJlPOj Etcbmwrfwg5guHTBBODUE7Pr47WE2FYx2bcElapXtrcHqsZYMBRpnfPHZZ9KheX455TIqfaxbgWTJ GCbPcQRZ5qSGg3fkqjp3TBIqKpLZZ/NatgGQ1gmNXBEQoxwVuSXbUkh9kdERMQfieIPn3Jfzj7Uge rgFe3kikynAnlqWoB5EnYy5rNdyx3EQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXaKP-0005Mn-Qw; Tue, 18 Jul 2017 21:46:49 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXaIj-0002Rj-I1 for linux-mtd@lists.infradead.org; Tue, 18 Jul 2017 21:46:08 +0000 Received: by mail-pf0-f195.google.com with SMTP id a11so4068205pfj.3 for ; Tue, 18 Jul 2017 14:44:45 -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=8m396Ezt4VYrLoIdDE8y7SDetHfqVuFEOT7e0MyHYsg=; b=P9tFHwgVxNnYglGg1Ex2JaXFY/tLBGgwh+jHojCx5lb1U5kHiWWP8UMahGvIL71QjJ A7UDhp6Kf3UdM64A4tvGB8WHUDOIya7K8xwfo5olR4yp/tttVTR3FqlNNH1bBiZC0b4u XBFI+Xs3eLSr3p5VqqaDXyrjRKUdhe3c6vXOcntSs/FIVjWnUBYH/lesWxOeBr+eCXgR 91htGMKJIlQ439/hQ9toR/RZtpagl/9AvWdHFJ53WwMuQMiu4TmXO7VJeFHbpLUYk7UY T9QgBVAtcQsXuZ6ofuugRzT0rqm7xBMJHxNC0xX+Qt/Yuj7ehkVRvIaW+6qc0UqWuplQ Wyng== X-Gm-Message-State: AIVw11102X/Pj0WuaeyYlu39Yy++JKkgPzl2xlqhvw4ste+aGyHSiS7E Z5qKDuv4yOrqPVU9R/cyaA== X-Received: by 10.84.229.130 with SMTP id c2mr3813179plk.215.1500414284674; Tue, 18 Jul 2017 14:44:44 -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.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:44 -0700 (PDT) From: Rob Herring To: David Woodhouse , Brian Norris , Boris Brezillon Subject: [PATCH] mtd: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:17 -0500 Message-Id: <20170718214339.7774-37-robh@kernel.org> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170718_144505_929584_B3A02833 X-CRM114-Status: GOOD ( 12.70 ) X-Spam-Score: -3.8 (---) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-3.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.195 listed in list.dnswl.org] 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.192.195 listed in dnsbl.sorbs.net] -2.8 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.192.195 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (robherring2[at]gmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robherring2[at]gmail.com) 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Richard Weinberger , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Cyrille Pitchen MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.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: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-mtd@lists.infradead.org --- drivers/mtd/maps/physmap_of_core.c | 4 ++-- drivers/mtd/maps/sun_uflash.c | 4 ++-- drivers/mtd/ofpart.c | 23 +++++++++++------------ drivers/mtd/spi-nor/hisi-sfc.c | 8 ++++---- 4 files changed, 19 insertions(+), 20 deletions(-) -- 2.11.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ Acked-by: Boris Brezillon diff --git a/drivers/mtd/maps/physmap_of_core.c b/drivers/mtd/maps/physmap_of_core.c index 62fa6836f218..1343c34092ca 100644 --- a/drivers/mtd/maps/physmap_of_core.c +++ b/drivers/mtd/maps/physmap_of_core.c @@ -178,8 +178,8 @@ static int of_flash_probe(struct platform_device *dev) */ p = of_get_property(dp, "reg", &count); if (!p || count % reg_tuple_size != 0) { - dev_err(&dev->dev, "Malformed reg property on %s\n", - dev->dev.of_node->full_name); + dev_err(&dev->dev, "Malformed reg property on %pOF\n", + dev->dev.of_node); err = -EINVAL; goto err_flash_remove; } diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c index 414956eca0c9..1e73bba6e286 100644 --- a/drivers/mtd/maps/sun_uflash.c +++ b/drivers/mtd/maps/sun_uflash.c @@ -55,8 +55,8 @@ int uflash_devinit(struct platform_device *op, struct device_node *dp) /* Non-CFI userflash device-- once I find one we * can work on supporting it. */ - printk(KERN_ERR PFX "Unsupported device at %s, 0x%llx\n", - dp->full_name, (unsigned long long)op->resource[0].start); + printk(KERN_ERR PFX "Unsupported device at %pOF, 0x%llx\n", + dp, (unsigned long long)op->resource[0].start); return -ENODEV; } diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index 2861c7079d7b..6bdf4e525677 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -50,8 +50,8 @@ static int parse_ofpart_partitions(struct mtd_info *master, * when using another parser), so don't be louder than * KERN_DEBUG */ - pr_debug("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n", - master->name, mtd_node->full_name); + pr_debug("%s: 'partitions' subnode not found on %pOF. Trying to parse direct subnodes as partitions.\n", + master->name, mtd_node); ofpart_node = mtd_node; dedicated = false; } else if (!of_device_is_compatible(ofpart_node, "fixed-partitions")) { @@ -87,9 +87,9 @@ static int parse_ofpart_partitions(struct mtd_info *master, reg = of_get_property(pp, "reg", &len); if (!reg) { if (dedicated) { - pr_debug("%s: ofpart partition %s (%s) missing reg property.\n", - master->name, pp->full_name, - mtd_node->full_name); + pr_debug("%s: ofpart partition %pOF (%pOF) missing reg property.\n", + master->name, pp, + mtd_node); goto ofpart_fail; } else { nr_parts--; @@ -100,9 +100,9 @@ static int parse_ofpart_partitions(struct mtd_info *master, a_cells = of_n_addr_cells(pp); s_cells = of_n_size_cells(pp); if (len / 4 != a_cells + s_cells) { - pr_debug("%s: ofpart partition %s (%s) error parsing reg property.\n", - master->name, pp->full_name, - mtd_node->full_name); + pr_debug("%s: ofpart partition %pOF (%pOF) error parsing reg property.\n", + master->name, pp, + mtd_node); goto ofpart_fail; } @@ -131,8 +131,8 @@ static int parse_ofpart_partitions(struct mtd_info *master, return nr_parts; ofpart_fail: - pr_err("%s: error parsing ofpart partition %s (%s)\n", - master->name, pp->full_name, mtd_node->full_name); + pr_err("%s: error parsing ofpart partition %pOF (%pOF)\n", + master->name, pp, mtd_node); ret = -EINVAL; ofpart_none: of_node_put(pp); @@ -166,8 +166,7 @@ static int parse_ofoldpart_partitions(struct mtd_info *master, if (!part) return 0; /* No partitions found */ - pr_warn("Device tree uses obsolete partition map binding: %s\n", - dp->full_name); + pr_warn("Device tree uses obsolete partition map binding: %pOF\n", dp); nr_parts = plen / sizeof(part[0]); diff --git a/drivers/mtd/spi-nor/hisi-sfc.c b/drivers/mtd/spi-nor/hisi-sfc.c index d1106832b9d5..04f9fb5cd9b6 100644 --- a/drivers/mtd/spi-nor/hisi-sfc.c +++ b/drivers/mtd/spi-nor/hisi-sfc.c @@ -355,16 +355,16 @@ static int hisi_spi_nor_register(struct device_node *np, ret = of_property_read_u32(np, "reg", &priv->chipselect); if (ret) { - dev_err(dev, "There's no reg property for %s\n", - np->full_name); + dev_err(dev, "There's no reg property for %pOF\n", + np); return ret; } ret = of_property_read_u32(np, "spi-max-frequency", &priv->clkrate); if (ret) { - dev_err(dev, "There's no spi-max-frequency property for %s\n", - np->full_name); + dev_err(dev, "There's no spi-max-frequency property for %pOF\n", + np); return ret; } priv->host = host;