From patchwork Fri Jul 21 19:28:34 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: 108502 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1181698qge; Fri, 21 Jul 2017 12:29:05 -0700 (PDT) X-Received: by 10.28.37.2 with SMTP id l2mr94392wml.112.1500665345612; Fri, 21 Jul 2017 12:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500665345; cv=none; d=google.com; s=arc-20160816; b=eX94FU1HruQFCXr0Oim0T4x2NCnVlzM9tVCloCnCrqd953/g7ss9Q8yLFKrYLKUYSO NvJmux5o0My6SHS/O1B1gcXCpBA/5WRaDsYnTXKllTh0CJ+CAD4sDEUH+G+Xj/BL+NbK /ab41HiY8tocw5zEtDwsPRw+c3MeYtQINIGsmwkYjRfvs7BuYdNInjfPiiWxjxvbDzKB G2Ct62/s0cE+bLkMP/ZQOrVWM0zoA3g+FheU9+0gdqsixOvosqqQuLkiUEzvL77UhEds k5QYNI+Oeyxo2jqmTFUYiHNuLkThVu/9eXUGZp/rqudDOH18TfVA27t7/XsBqdJ3lsOq 30Ew== 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:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=IPzBn7UCvZN09e2eX7yH6KjXGULXSzHPxWR7qj01WlA=; b=zDw4F8Bhi4UQZGRaEBHN5WgbzqdC+IdEDPfT0+wGHfMry3wGVXIGWZiKskRtWIFJFL QcI86JqzaNzUB84JkcGAYS86ecCkmg/w5CoXaRkjPG9UOYOy8T2MiPTDNEylL39BhB7e xHozb/PMAKewf5hx8LQDsdDNDORLh1un7u0oMaTlYkMXiyMVKOtIJ1OGqJW+vWXibPTi 60sMN4uvNcYhLexnE47pPn/tF+j948rpBXwpehqZ6GwfCk/YgPmlbXyMJdJs2Cf2sn9j PTAT0Mg0EDbVm96/GXjSFKQbaPUskdNL8yitXmefAgzwLwvZBV4jt554FyCNts166r/h 1D5A== 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 y45si8476203wrd.165.2017.07.21.12.29.05; Fri, 21 Jul 2017 12:29:05 -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 8893D266B1C; Fri, 21 Jul 2017 21:29:03 +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 87832266BF5; Fri, 21 Jul 2017 21:29:02 +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-yb0-f194.google.com (mail-yb0-f194.google.com [209.85.213.194]) by alsa0.perex.cz (Postfix) with ESMTP id 900A1266AF7 for ; Fri, 21 Jul 2017 21:28:56 +0200 (CEST) Received: by mail-yb0-f194.google.com with SMTP id c127so1787368ybf.4 for ; Fri, 21 Jul 2017 12:28:56 -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:in-reply-to :references; bh=1xS9336wzFvhkF8AXkxNYU9CNrTGFgOoVxWCdtJ3W7U=; b=L5HBl9FwhOUlg/L5Ox8aOuDQnFPPxnL/2uutWbVWI9OOzdRyP7JXgCA37S1XyTiwoh BsQxm+fSng3lIEOkeyRZLRGNKPHMCiUdkny+1uqKmE+9ehAtv6fNUtd/K1S9M6eq776w htN8BYyqISrqA3GHmFfSSqY06KomD4ZwXY6BOKiNhYKKfuqm4W/2SHM6nOVSftZN61l2 gMgn9OUk5Ge/m8YDCFMvKgLwdpwQwB0TiFOAhWqIgnz3n+CTejNVilY4IlIqOS2WzpCE IsYepDw2YLHN5mBDI5X+ngj46JF7DoNpSnT6HwB93xQ7chFR4955mU+tkcdta2Apdv8O nA3g== X-Gm-Message-State: AIVw111l8dCExZV7rRbiQVzywIfRW55JPYa/8G/DF94Q9JvgSM/P4qoD YaIWEDowJ08XfQ== X-Received: by 10.37.228.69 with SMTP id b66mr7661887ybh.28.1500665335001; Fri, 21 Jul 2017 12:28:55 -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 q11sm1929431ywj.78.2017.07.21.12.28.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jul 2017 12:28:54 -0700 (PDT) From: Rob Herring To: Takashi Iwai , Mark Brown Date: Fri, 21 Jul 2017 14:28:34 -0500 Message-Id: <20170721192835.25555-3-robh@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170721192835.25555-1-robh@kernel.org> References: <20170721192835.25555-1-robh@kernel.org> Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Xiubo Li , Liam Girdwood , Timur Tabi , linux-kernel@vger.kernel.org, Nicolin Chen , Fabio Estevam , Johannes Berg , linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH v2] sound: 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: 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 --- v2: - Add printf specifier change for fsl_dma.c sound/aoa/codecs/tas.c | 4 ++-- sound/soc/fsl/fsl_dma.c | 4 ++-- sound/soc/fsl/imx-audmux.c | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 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/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/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);