From patchwork Mon Aug 7 23:29:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 109601 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp2218850qge; Mon, 7 Aug 2017 16:29:36 -0700 (PDT) X-Received: by 10.28.93.211 with SMTP id r202mr1451071wmb.116.1502148576770; Mon, 07 Aug 2017 16:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502148576; cv=none; d=google.com; s=arc-20160816; b=UJg2N9iS1UDLyUKxWufRapbkXWSqhHI55OUqJYbYY+Os6prlK3BD+8NQz/SVi9QsaV QpjT/k0skg+Hqiw5erwqEkByuRvK+S9Nh1jnP69BKDzkBQrFNrZL7K5zP+rd+AziRkLD DbD0RHz/yps040hriMJyROcqZLYLbctXlmbouyCPBv6g8VS5KCSx608niyLQe5AVSATo avn0K9mAocMR7tsmWHUPlEq2yZbzj4tjsYNZZZciOz03C2+gUDG/7U9K9PtIhU2B0y2c OIRFcbO0UU7B5g3Yc4gPr3gRDlGv9nwm7h/H/enTR/41S5k5NTTBsUEGt6tDEhLLeoEk gIZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=sjdoM1ilLewuQng3yvdKPTLhOelP4hFXqSxTrdETHDk=; b=EeStGiUnvmvQqi2pVMgvo0TK/deavrpFZR9Wi6L0ivgWVtQ4dj3iNLje1rmXKmG4DG vPSmxuHV20fL6rivVU0Hyz2gLU0CGRWpPqjfpTcO+CcQr4DS2q4iG1mXe49LMd4QC8/W LVBp3k/70m9ypC22cGHyIudkFayOxSvUKA3NhCSflQ5Hursc6/p54P3s1rA4xgdbF4Gh S/SlOE2bQnm4ihiAwRMltnvb6LT7bEUZMlP81meL6UmgcscDbdtk2rdrXR0+E3kYUCI2 sBQjX9mBi00iBuMoQhftvPSCpmJiaAWTtKTXfotPBkz2QmdSEUeNKyFgmIbx5ohVGWkp 3IMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id z9si9135827wra.119.2017.08.07.16.29.35; Mon, 07 Aug 2017 16:29:36 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8C1A326733D; Tue, 8 Aug 2017 01:29:33 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A1B8F26733B; Tue, 8 Aug 2017 01:29:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by alsa0.perex.cz (Postfix) with ESMTP id DD7B226733D for ; Tue, 8 Aug 2017 01:29:26 +0200 (CEST) Received: by mail-yw0-f194.google.com with SMTP id s143so1224513ywg.4 for ; Mon, 07 Aug 2017 16:29:26 -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=Ng3tc8+KVn60Q7fBi6N8Jxax8mleNoSiskTgHsR0f8s=; b=hD2/U07qaGTzceirl4SFGju/SbAOGvxu1ijMayeljWSYp4kA67kqInnZScNYpm+dZi Tnb9T21rUA6x/He789D+VRgM0Kf9CVFhvc93Y6q3eDxJjkbu39VkqYbmx5sEu9WoMFdF /I02xrYfO7WumAyXhEAQFCU4i/yCjzWENqNaWdd0349Y6R8nM1o3RZpS+Von0L0cwTJK RJOpFmK/0u+Gf6/FqnmrvH9oNB9iQCx8YHiDUyEaMn9mTLPvNdxcU5yqw1KMAh5I2ykM 9JA7OjqGSjR9B5sF+FEzajGMRAVO9wgvTRjG7fN6KeMwfO3zIOoiaDC4WZCqcvJN6AFM g/pg== X-Gm-Message-State: AHYfb5hUIlGoW94WECiTwCjkfY1yqtetjj0id5/13dIVNMmuUWeQjckN n+0C4jWmsQN5mA== X-Received: by 10.37.183.200 with SMTP id u8mr1909388ybj.178.1502148563279; Mon, 07 Aug 2017 16:29:23 -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 r65sm3385342ywb.83.2017.08.07.16.29.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Aug 2017 16:29:22 -0700 (PDT) From: Rob Herring To: Mark Brown Date: Mon, 7 Aug 2017 18:29:18 -0500 Message-Id: <20170807232919.30247-1-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Cc: alsa-devel@alsa-project.org, Xiubo Li , Liam Girdwood , Timur Tabi , Nicolin Chen , Fabio Estevam , linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH v3] ASoC: fsl: Convert to using %pOF instead of full_name X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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: 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 --- v3: Split ASoC changes to separate patch sound/soc/fsl/fsl_dma.c | 4 ++-- sound/soc/fsl/imx-audmux.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) -- 2.11.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index ccadefceeff2..ed8ea002902d 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c @@ -897,8 +897,8 @@ static int fsl_soc_dma_probe(struct platform_device *pdev) ret = of_address_to_resource(ssi_np, 0, &res); if (ret) { - dev_err(&pdev->dev, "could not determine resources for %s\n", - ssi_np->full_name); + dev_err(&pdev->dev, "could not determine resources for %pOF\n", + ssi_np); of_node_put(ssi_np); return ret; } 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);