From patchwork Mon Oct 1 21:43:48 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: 147941 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4403572lji; Mon, 1 Oct 2018 14:43:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV61/fUU4OMKjOCxPJ6Xx2Lry7XRWJ0wioXjqyvfLZ1OLSzh/HkBq0rBnzXiQrX1MsoAiaKRk X-Received: by 2002:a63:9f0a:: with SMTP id g10-v6mr11737327pge.232.1538430237857; Mon, 01 Oct 2018 14:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538430237; cv=none; d=google.com; s=arc-20160816; b=YiadkTIh41Lham4yapNKj8a9CCxY5jOX2GB5uJPuzYL7rz7PKlMkkS37BZ6Cfli+LQ 3Tp3uw3QqhUKVwS7Sb0/TbngGuTY2hDyV3RyhA8buJZpmt2mGSLtM+6CKIE59QmJQGM7 bXNdV7K4AxJlVSg1aYwUO4MU+CbfFnkiBMtKR2SkDzXD372t0GqxWmFxtrjVTnF7vd5g 4i/2lVADDDi3QZ1N4Dcx9MuN/1sMrHVUnezbiYkD+rd3IpoekPMJetGN8i/LHxQq0xiI gpjKeWSa7jZ+8ghYRSaRUcnS8tGEgmonDCqzKJwcxMl7wuVHynC7T4sBL7Xj5QmT/ENI 2joA== 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; bh=L9kqBX3pi22PnrQtBzvtfL5T0DK9Glho7IjZ925GE14=; b=Tupih0aZZ7xMDIfuZ2ndqmod3alc8OwTLvObkE3oE/3rJalCuPnVgoA87Qa/4tARyD j4EZA7fhqRw+RCRmma0vIi3F9glfNjhuWQQHNbT+rMmJzSw3SmATBNVi0thA4Nno/ox0 50u+8iZQi/tkLriIIQ+21n4c/X+Eu7PgBQC4Z5WZsXrSB61WaoZCe/L3foigqLkDRh8D dZ1ENdLBmXC+IlR7dOJoeMtPyG5pYagDhsMXRlnhiHjo00iml6bEqARF9skxLhIsRDdj Pao4RtyUy/NGiZuzfFLkZ6AgLnvXSiCBrmbw20IQ9G+9xmjSatqFom0SuNBOXDlC2iaA GUVQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si13600137plb.303.2018.10.01.14.43.57; Mon, 01 Oct 2018 14:43:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbeJBEXo (ORCPT + 32 others); Tue, 2 Oct 2018 00:23:44 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46851 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeJBEXo (ORCPT ); Tue, 2 Oct 2018 00:23:44 -0400 Received: by mail-ot1-f65.google.com with SMTP id q4-v6so14700735otf.13 for ; Mon, 01 Oct 2018 14:43:53 -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=L9kqBX3pi22PnrQtBzvtfL5T0DK9Glho7IjZ925GE14=; b=n8MR7iOzJN5sViaw4IMFHpfBjGFkdOrNkJYKRsGVWT1FQq4xgmSzTKK66PY+vbcmHI nNxdY10Es/64ptUTMphBStK8PSUcr6RXyugrcmw/XBeJZraWAjB+fPUDg1HBqMVWchlv Oc2oLXjUST48Bb2HQD87+wkeHGNFrKGYZKUGNi8eOTDiNQM52fvGxEYX/ErIwbXa8BA8 Uvx5Ip9RnfICoE6E/bjbjVRQY+nsWRXff4X4YmOCR7fU9um6XGrbPGTviLeCT6TXqFfd 9LzPniWwNoaniDRsQAE4QbJcOu31fHLna3lBkwWmP0qrkGhwamqg+69fRVGbrWUzC5To jxbQ== X-Gm-Message-State: ABuFfoiYq+U9K0I1PbWbz6kZfALVQL/UXfCB72MEd43d8awBanDkf1ZH DjNXLj/jawxX+nJYZHj9KPyr9hctZQ== X-Received: by 2002:a9d:3437:: with SMTP id v52-v6mr7274970otb.231.1538430232940; Mon, 01 Oct 2018 14:43:52 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id h22-v6sm6401661otd.21.2018.10.01.14.43.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 14:43:52 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Olivier Moysan , Arnaud Pouliquen , Maxime Coquelin , Alexandre Torgue , alsa-devel@alsa-project.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ASoC: Convert a few more users to using %pOFn instead of device_node.name Date: Mon, 1 Oct 2018 16:43:48 -0500 Message-Id: <20181001214351.13230-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.17.1 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;