Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3018692pxk; Sun, 4 Oct 2020 21:54:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYBcL7c3CnzNvDVqMqPAE1NY1IrKbeGI0iSGzXwd1XCSO3Vb6twZ/BD2zYhzibXelUP07b X-Received: by 2002:aa7:c746:: with SMTP id c6mr15085713eds.221.1601873687461; Sun, 04 Oct 2020 21:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601873687; cv=none; d=google.com; s=arc-20160816; b=XdivbFpMGHTZAqt2VBRWk5kOuTR1l9gWUKWnJMxGthy1gH4ByZRXnsBeShTf05p9O2 CIQZ7Oyu+Khvm5CqkZgSNEVDe8Ezmd32rDo1Y7B4xfW8bSXRHnQXVrM0P3ALn2KqTPx1 ly/W16vI3unhLTRTD00G1g+5mHyZNpmSVsfx8PNHdkEhNlx11DwIZgMWi7VuJfO3mqfu az3j8623JG8XqN5Q1FI9V0FNquvODmObSY5xz2Ary61SzPImhIcwYgits8Rb/C5WMaGB S60Qx5JerPI4yeHLDMdR5s64ac2BTynxND7OIcNPVMSf2WbgNw3B99Mn+PIilXep/e+0 oWqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=kxK9LtfCElRb3WIXIcnYrmIbewkkXrexPQfvtxTLWR8=; b=iZ4iQM27uIKTrzTLhgqj3N+VPIkq4X5e5uFq2eUy+E+SW6v2U6K8FXI8dWRkGq7bRt +fx1vU1JQ+Gn0RM8A0oE1yrzHv6pwky+YZO/TGieFtFvWeBXP/ZyIcREhgl+fKK8gwHA lCknfQDc0NO7OYTkVmOx39J/VC6uULi0g7X78ItN8eVRQg8qc+pHzjRCVP/bic8EpJ5g RzadAFNwDNA19aJFSGCLVjC6m3f8qA3+yiPamz6yHFkd/WMoJuNJoic8UgeUcamV8kjf EAtOtTb2mReLPFJrMrHkX46U7gyYDFnXyKiw6fGnMR9nqG/4QiRaqdo/U9oPEm2YPgK/ ktdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ndDVs42c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si6554351edt.499.2020.10.04.21.54.24; Sun, 04 Oct 2020 21:54:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ndDVs42c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725966AbgJEEtH (ORCPT + 99 others); Mon, 5 Oct 2020 00:49:07 -0400 Received: from z5.mailgun.us ([104.130.96.5]:32585 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbgJEEtG (ORCPT ); Mon, 5 Oct 2020 00:49:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601873346; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=kxK9LtfCElRb3WIXIcnYrmIbewkkXrexPQfvtxTLWR8=; b=ndDVs42cDZfyYfChuDFVjSdXIWVTp+ZrIDI2ni7TOwnEMww7g36HmVrdh2UuAJ64Cx6QDmGo m3PenfyhZAPOYF86vW5yC1niUPyuc0BhqlcywIk0mYptz33Grs82BXD+4jfVrS0pGGRwfjy1 jiQBl3CyNUR51Otk9HwvnKUvRlc= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f7aa5c1a03b63d6732e0696 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 05 Oct 2020 04:49:05 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D98C1C433B1; Mon, 5 Oct 2020 04:49:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld210.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1E3A3C433FE; Mon, 5 Oct 2020 04:48:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1E3A3C433FE Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: V Sujith Kumar Reddy , Srinivasa Rao Subject: [PATCH v10 3/7] Asoc:qcom:lpass-cpu:Update dts property read API Date: Mon, 5 Oct 2020 10:18:26 +0530 Message-Id: <1601873310-1894-4-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601873310-1894-1-git-send-email-srivasam@codeaurora.org> References: <1601873310-1894-1-git-send-email-srivasam@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: V Sujith Kumar Reddy Update dts property read API call with platform get property by name, as it make code more readable and avoid conflicts when array of properties to be used. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Srinivas Kandagatla Signed-off-by: Srinivasa Rao --- sound/soc/qcom/lpass-cpu.c | 2 +- sound/soc/qcom/lpass-platform.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 0718a0f..12950d2 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -575,7 +575,7 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev) of_lpass_cpu_parse_dai_data(dev, drvdata); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif"); drvdata->lpaif = devm_ioremap_resource(dev, res); if (IS_ERR((void const __force *)drvdata->lpaif)) { diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index 7ac2629..e7cf4e5 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -621,7 +621,7 @@ int asoc_qcom_lpass_platform_register(struct platform_device *pdev) struct lpass_variant *v = drvdata->variant; int ret; - drvdata->lpaif_irq = platform_get_irq(pdev, 0); + drvdata->lpaif_irq = platform_get_irq_byname(pdev, "lpass-irq-lpaif"); if (drvdata->lpaif_irq < 0) return -ENODEV; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.