From patchwork Tue Jul 18 21:43:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 108204 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6480808qge; Tue, 18 Jul 2017 14:45:45 -0700 (PDT) X-Received: by 10.84.178.131 with SMTP id z3mr3791646plb.271.1500414345399; Tue, 18 Jul 2017 14:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414345; cv=none; d=google.com; s=arc-20160816; b=1Bm/EWrT8qcmyFQ4vkuSuZ0bmKYLUXvGXgrmJe68YAMuGOJAhMUfuEbVyPrySGa9MH INYGZ8td2S6nvUSDK9a+YEL2bAwyc7lBQl73+Qabv7BSDq//TJO8MduSnBUqZ38jcm2N 3HNZIb2fPpj3Ut5m/xXlUCbRobutgATIh66TKLyjNkTioaFISV2/LaAE+K4IPfcCfWe6 RSEC95FhbxVj6lvWSpbiFnOCo1AOA89Azli+ulyQy2G5M7ja9U1YZxHn6RzDSBQ37B/u 0P1Z6kZj4E5JdM3l7uODgzINPQa7tqGy1ZMPubHviypVVJ2oAZjJZ4u+XSXvGL2MX4lT DgPQ== 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=hxb17rt1IEAvrUiMXC9ziSSqeL2si2zwPkFKCScSIQU=; b=e+ob0Y+24vF+0DCdniLSZtRKzKtnBN1tOxNxbIBpK+yoLHH+n9/K0nW3otEMBmkVan 6/uhhwcf+IK/ZlWkW0J6GHU4qxWOUrITl3JQpAot7ro0W2pSPIzc2SSqfsp0x5s41LkM Ck7yElQdo2vOQQJz7yuNYC1Wt5zQfPVXjJTD2rNx4iFPSrmpqGb+x0Hxl96LNjte6RSZ S64g/qdSxnTNfYQuhGE6JZmMFvWLfaugtAyioWk9odtzfjQj1GnkFabePCvnk9HiqNKu zZUekK8EEBF4cdkDMtD90B7n66X+IR6q5VMfVd03r3xq+JSjW2ToayU8MkcVlIGJBJkS pBsg== 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 o33si2650134plb.384.2017.07.18.14.45.44; Tue, 18 Jul 2017 14:45:45 -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 S1753154AbdGRVpl (ORCPT + 25 others); Tue, 18 Jul 2017 17:45:41 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33164 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752959AbdGRVpR (ORCPT ); Tue, 18 Jul 2017 17:45:17 -0400 Received: by mail-pg0-f66.google.com with SMTP id z1so4354186pgs.0; Tue, 18 Jul 2017 14:45:17 -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=hxb17rt1IEAvrUiMXC9ziSSqeL2si2zwPkFKCScSIQU=; b=TG0CVMj1AgbkGH0Qmk9DWwOb0YWalOm9OEGhNlt7yOTnKvqrEs8FKgCRgiVPknfJ4Z cWZEPkWGlBchJ3QxGmBqeiJ2XCg9e1JRKxrvnGu3+3r8Q6RYWnZrAcoEX+ZUDaK2b5ku PQFSLudpI53Qa/bCWiZHJoUhysYlYDX4wAC1BGm7nRwIzDwUS9npbm9YIpOsHjGsZPLJ xYlKQG6I5WUfBFqEVPDJ7AtJ2YQmkhJedIt4mvymQuuDL4hE53rlUo0iyi+0yO6d+E9f a3+y/ATFNBN3VzDmuNeml++wFflsL70v0DupuwE5XYW0SxmXZ0Ib1ANSHmUnlNgU8pHt tO7Q== X-Gm-Message-State: AIVw1131GNgrHkD6T24rMztM4t3SdNH4a9USNX4ZmYsvMYTHTRJsW+B7 h47FbNLNBkQSm2OuMpTs6g== X-Received: by 10.98.34.15 with SMTP id i15mr3791785pfi.119.1500414317244; Tue, 18 Jul 2017 14:45:17 -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.45.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:45:16 -0700 (PDT) From: Rob Herring To: Takashi Iwai , Mark Brown Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Johannes Berg , Jaroslav Kysela , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org Subject: [PATCH] sound: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:38 -0500 Message-Id: <20170718214339.7774-58-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: Johannes Berg Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam Girdwood Cc: Mark Brown Cc: linuxppc-dev@lists.ozlabs.org Cc: alsa-devel@alsa-project.org --- sound/aoa/codecs/tas.c | 4 ++-- sound/soc/fsl/imx-audmux.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) -- 2.11.0 diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c index 733b6365dad6..15c05755d270 100644 --- a/sound/aoa/codecs/tas.c +++ b/sound/aoa/codecs/tas.c @@ -905,8 +905,8 @@ static int tas_i2c_probe(struct i2c_client *client, goto fail; } printk(KERN_DEBUG - "snd-aoa-codec-tas: tas found, addr 0x%02x on %s\n", - (unsigned int)client->addr, node->full_name); + "snd-aoa-codec-tas: tas found, addr 0x%02x on %pOF\n", + (unsigned int)client->addr, node); return 0; fail: mutex_destroy(&tas->mtx); diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index fc57da341d61..392d5eef356d 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c @@ -268,13 +268,13 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev, ret = of_property_read_u32(child, "fsl,audmux-port", &port); if (ret) { - dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%s\"\n", - child->full_name); + dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%pOF\"\n", + child); continue; } if (!of_property_read_bool(child, "fsl,port-config")) { - dev_warn(&pdev->dev, "child node \"%s\" does not have property fsl,port-config\n", - child->full_name); + dev_warn(&pdev->dev, "child node \"%pOF\" does not have property fsl,port-config\n", + child); continue; } @@ -292,15 +292,15 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev, } if (ret != -EOVERFLOW) { - dev_err(&pdev->dev, "Failed to read u32 at index %d of child %s\n", - i, child->full_name); + dev_err(&pdev->dev, "Failed to read u32 at index %d of child %pOF\n", + i, child); continue; } if (audmux_type == IMX31_AUDMUX) { if (i % 2) { - dev_err(&pdev->dev, "One pdcr value is missing in child node %s\n", - child->full_name); + dev_err(&pdev->dev, "One pdcr value is missing in child node %pOF\n", + child); continue; } imx_audmux_v2_configure_port(port, ptcr, pdcr);