Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp951513pxu; Wed, 7 Oct 2020 22:19:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUwwV8zZD2l+sNHsl3odm5fPNOag5gHQFioqFTiF/7R5wmW/rc5H2B8i+NDFZfwpZo0DEp X-Received: by 2002:a17:906:7013:: with SMTP id n19mr6834961ejj.388.1602134386836; Wed, 07 Oct 2020 22:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602134386; cv=none; d=google.com; s=arc-20160816; b=JpUXK0VVnAVqnEA5lEHCTaNl9K8DbGDHCwCZTreJzuMIcsf7GE9bcaN3tOVRZR4vLq MFz8+0Gty88klHfW1CEZTM+7PhdzIAu6j1/R2sQ+7vIu4RBS9Lcr2PHLaID6KLdD0d+p xqpW2T7ugx3Uk5Df0wjeGEZrd/eoh97uBO0BvJ0UHc2nzipUBnGwpU5waL0R3xLMj3Xx gp9dnY/pSESeYI/MTiZtMgZzA0FsC6A7sfeXjjy0xW6W/QKyCZcvfmgu41n7PijeUB+E yeYYatLqXly5PeqY2hiAskhohW+hF9SOCDBUlfsgqd186l/e6UzQHAmD50qThZ+DtNDC P0Dg== 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=jaTttwGIqWp2KHABKtnNMBOwZrJxBqHBZ+A0i+dN2W/Qc1zu6AJl20QpC/LL0cuyet LgmqF7xtUe+F2KPxe3GlhOGYIwBELWZpa9rs0/OEuh4pE3K3p6Xw6654O7mJfNEgJbyG R2z9sw+Qv2IPo/mZKNKZgc8HSwQd5L4hRgrFQZ+rYITZcIktmzS8+52iREQ/FhtQPgvZ coPA6mpcGA1ap0o3vVV4iFPrSxSftxK7ssyLrFzV/XiaKI/8W5lqgBYYYsvA0uR7eV1q E8h3FDL2H/aAZoyvjFW9/Csc/+0b52TOa21yAYar9OgYWWUZC+vGxs0Ee0/akg57VE3p MEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Y079hlHJ; 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 a16si3595440ejk.665.2020.10.07.22.19.24; Wed, 07 Oct 2020 22:19:46 -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=Y079hlHJ; 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 S1728428AbgJHFRq (ORCPT + 99 others); Thu, 8 Oct 2020 01:17:46 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:33186 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728132AbgJHFRk (ORCPT ); Thu, 8 Oct 2020 01:17:40 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602134259; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=kxK9LtfCElRb3WIXIcnYrmIbewkkXrexPQfvtxTLWR8=; b=Y079hlHJkcb2romwmuaZ2sVfFYUuOMlc5bvbSM8Tz3D5ifpxDmEnoWUC1A7TW4LP94iMkI3b GJBkdMzKd9TPhKprIxKV6XgTg/Wd6cR7/ZxxkPM2RfYcc0xz+v71SevQXmgDVdqOTev0JcV6 F8kBW8zn+Fsuaxva4H0xk5VIYGA= X-Mailgun-Sending-Ip: 69.72.42.4 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-n07.prod.us-west-2.postgun.com with SMTP id 5f7ea0f3ad37af35ece6f157 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 08 Oct 2020 05:17:39 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 757B2C433AF; Thu, 8 Oct 2020 05:17:39 +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 32D1DC433CA; Thu, 8 Oct 2020 05:17:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 32D1DC433CA 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 v11 3/7] Asoc:qcom:lpass-cpu:Update dts property read API Date: Thu, 8 Oct 2020 10:46:59 +0530 Message-Id: <1602134223-2562-4-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1602134223-2562-1-git-send-email-srivasam@codeaurora.org> References: <1602134223-2562-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.