From patchwork Fri Nov 16 21:43:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 151374 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp936148ljp; Fri, 16 Nov 2018 13:44:05 -0800 (PST) X-Google-Smtp-Source: AJdET5eRhebMNktPt+HY7yPI5jni0mVr48FDHb0Su/gnylsB4MPB894BlIdilLyi5fjdbBbxOqq3 X-Received: by 2002:a1c:b102:: with SMTP id a2-v6mr4037836wmf.101.1542404645596; Fri, 16 Nov 2018 13:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542404645; cv=none; d=google.com; s=arc-20160816; b=rDE4tImokxZswUplLxEWU8xnX6ApMrLxj+5YS0K4ZvjjiiLwaJ3GrAH9nQQMGGUI2l HmSERYJee6XVVmrWNrWPFyjP6FQbVzwXHKXwDCFwHYoO3qq9vfUp0rBeY2Vwwka45IaE oIbOOqTcj1IqR2A2ff275RvVfmaHa/FgPmLT+pQTLGLvP9AXehHCCOliKbUDQun5cxt6 9JC/qbNyJI8iSYRbMR2uC2Ifdd2/nRXGX/zB+xtRa4pu89Sq0hQPrnH+qz3vPI0X/iR1 sV6nbUg/J56BkDFRA3brs8whv76Vmlfux25HrGEbRAWUYjnmAH2p39LF0hogXR06wO8E c3UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:delivered-to; bh=s74/D1cXdO/CAlVTohcvVR03PbvH65p+YF8AfMy//UA=; b=h4AmMwooDuKY3Japo1YXorvsm5AgRaUvEvOhjvP3FaPVkiKB4Q9RpyzxDAgaR6F7nh G5zIiE2QdX9JTBl7D30xo0acSK2VJpndrnVtzboklTxcXlRuIRiUBeE91Gd/PUfdrIj8 Oe23bn+sphsWJEuV7TWqyO22yxgN8M9BJCppvOY7q48ygvKoIVcc7KmgaRRIDpHUSK0N eg0ZIRJWtNCbDJqz5nHk61rvPjJU7Xx2aiC/fef9uSNprqYZGRmd3yL+QtklCJtvsvEp GYh27krZEfqDwSu51DrgKncF48OSMvbsOpkewnM6+D//pX+ftk3tp/hvEqbzjpcBeF+m KYgA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id v5-v6si24139636wra.457.2018.11.16.13.44.05; Fri, 16 Nov 2018 13:44:05 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7639426794E; Fri, 16 Nov 2018 22:44:01 +0100 (CET) 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 62BA52679C0; Fri, 16 Nov 2018 22:43:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.5 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,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-ot1-f65.google.com (mail-ot1-f65.google.com [209.85.210.65]) by alsa0.perex.cz (Postfix) with ESMTP id CC9D2267947 for ; Fri, 16 Nov 2018 22:43:54 +0100 (CET) Received: by mail-ot1-f65.google.com with SMTP id z33so22646161otz.11 for ; Fri, 16 Nov 2018 13:43:54 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=HuxFeXto8YN/NPc8MUU+gthtEb7wTx+v1aJNgBunW7o=; b=HmUwBZPR2rE/YPHB17mGDJYi0Uma6xb+rKYA0KE4IWlKXeJOCXkFKRz7i3GakxlH0W +FGJd+ZZhv659Nf0V4Zpmqr0rjNKcsmsc12MxSlW6b/l8QDrnJP+5qoyOHKYbQcGCY/g km3Jc+Pk0dvgevEBJRiZ1XZyrczJrrw9eYJZqzJupElbVnYe+i9Zve9S4r0n06fx2xWK E93ODfqFVgCdyk7Y20i3Gu8q03hDmAarf0O/p7nWQw7/J7KNoN7A1UCgUEq7+s1Dq8ej sFPVCNM0E2VMfukzPWeiOsl2na7AA7FdbyRz2Oici5XDUkhwt/Kuu2D804CYInOKxCAz JTEw== X-Gm-Message-State: AGRZ1gKRMNmKXgksfk4siMd9JObLN7/EmO3J5PvW24XNpWVhzED8O4KZ AIMkBG0Bqjzqn4Y+SqKt5g== X-Received: by 2002:a9d:b5:: with SMTP id w50mr6889580oti.185.1542404633192; Fri, 16 Nov 2018 13:43:53 -0800 (PST) Received: from localhost.localdomain (mobile-166-173-57-127.mycingular.net. [166.173.57.127]) by smtp.googlemail.com with ESMTPSA id p203sm13151708oic.49.2018.11.16.13.43.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 13:43:52 -0800 (PST) From: Rob Herring To: Mark Brown Date: Fri, 16 Nov 2018 15:43:49 -0600 Message-Id: <20181116214349.20632-1-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Olivier Moysan , Alexandre Torgue , Arnaud Pouliquen , Takashi Iwai , Liam Girdwood , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: Convert a few more users to using %pOFn instead of device_node.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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Olivier Moysan Cc: Arnaud Pouliquen Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: alsa-devel@alsa-project.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 2 +- sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 2 +- sound/soc/stm/stm32_sai.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) -- 2.19.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c index 192f4d7b37b6..bff7d71d0742 100644 --- a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c +++ b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c @@ -828,7 +828,7 @@ static int mt6797_afe_pcm_dev_probe(struct platform_device *pdev) /* request irq */ irq_id = platform_get_irq(pdev, 0); if (!irq_id) { - dev_err(dev, "%s no irq found\n", dev->of_node->name); + dev_err(dev, "%pOFn no irq found\n", dev->of_node); return -ENXIO; } ret = devm_request_irq(dev, irq_id, mt6797_afe_irq_handler, diff --git a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c index c0b6697503fd..166aed28330d 100644 --- a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c +++ b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c @@ -1092,7 +1092,7 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev) irq_id = platform_get_irq(pdev, 0); if (irq_id <= 0) { - dev_err(afe->dev, "np %s no irq\n", afe->dev->of_node->name); + dev_err(afe->dev, "np %pOFn no irq\n", afe->dev->of_node); return irq_id < 0 ? irq_id : -ENXIO; } ret = devm_request_irq(afe->dev, irq_id, mt8173_afe_irq_handler, diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c index d597eba61992..bcb35cae2a2c 100644 --- a/sound/soc/stm/stm32_sai.c +++ b/sound/soc/stm/stm32_sai.c @@ -74,14 +74,14 @@ static int stm32_sai_sync_conf_provider(struct stm32_sai_data *sai, int synco) return ret; } - dev_dbg(&sai->pdev->dev, "Set %s%s as synchro provider\n", - sai->pdev->dev.of_node->name, + dev_dbg(&sai->pdev->dev, "Set %pOFn%s as synchro provider\n", + sai->pdev->dev.of_node, synco == STM_SAI_SYNC_OUT_A ? "A" : "B"); prev_synco = FIELD_GET(SAI_GCR_SYNCOUT_MASK, readl_relaxed(sai->base)); if (prev_synco != STM_SAI_SYNC_OUT_NONE && synco != prev_synco) { - dev_err(&sai->pdev->dev, "%s%s already set as sync provider\n", - sai->pdev->dev.of_node->name, + dev_err(&sai->pdev->dev, "%pOFn%s already set as sync provider\n", + sai->pdev->dev.of_node, prev_synco == STM_SAI_SYNC_OUT_A ? "A" : "B"); clk_disable_unprepare(sai->pclk); return -EINVAL;