Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2890075pxk; Mon, 28 Sep 2020 02:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUdI2EOPn7YE9alt8DpgLZ8E3CNEr8+QQHdN0YxODM2Q5zsFPMHY7BB5Th8BTLFVFSHFph X-Received: by 2002:a17:906:7143:: with SMTP id z3mr774044ejj.361.1601286970940; Mon, 28 Sep 2020 02:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601286970; cv=none; d=google.com; s=arc-20160816; b=niLsFKu3m+GF6NhidZkiUB78peg47YWV/+z3y6MpP7MNyivM5TxPWbjgE1S0sY4QO+ KtCZbQPW8X1d5CENOFjO8cImHzXhibYPwRUFRSCbNSlXHPgCCHf7+8BcZTX44l58AusV ANeniMucghXFy/qd/rHagDTGDMCXZ3iTV1BOGPcYnNILIaeq5ejQnmB6my93dnyADCNF gurcQK2BoYJ7e5yrEVjK/EAT4PlstMCCyD3YRQmjfrOAB2HryTOOYwl258hf1liY4X14 kJoTKpOJ2Dp4/4RK18/VztHmHV4ScJ4l4pWDEkdNG9Rq1NK60n41iv+n5n2Gj58oL8T/ WZAA== 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=lTpp6p4jIxGLT+264TxVTrGqHO646v4pl1NjRSaQbbU=; b=PnMJa23nLiOlXP5SNbHDChGH08VWYSHUWzwmy+87oObjbk5qVAnl4vKH8D/uUsS29+ SEv77RCihzrpO7TevYfbzAV2UNY246eoQk1+kUnbjUWl3iw06qBeA3Vlm5J36qzST/XY GL4KQSuXIYB4fyjQWgWs5OL56Zzi4kU6NdK/XFvgHgSqiH8n+GVacHml5+9TcJZVrV6a zFi5zAHk7k50UNy19w11ai4Hr7v9Jdk0IQPehTw2OzTY5geCD8r9VVgi4JqR/S+omSAe YU9SGg8/MhagrSrAc8UqP5M/vdmdUP+4Mj2vjxow/V7zURwBDr/+vy4pJX9r+iEnk1oI 3LLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=M+FfpU07; 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 gg11si257893ejb.700.2020.09.28.02.55.48; Mon, 28 Sep 2020 02:56:10 -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=M+FfpU07; 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 S1726674AbgI1JyH (ORCPT + 99 others); Mon, 28 Sep 2020 05:54:07 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:64706 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbgI1JyH (ORCPT ); Mon, 28 Sep 2020 05:54:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601286846; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=lTpp6p4jIxGLT+264TxVTrGqHO646v4pl1NjRSaQbbU=; b=M+FfpU07dZAkP74cZGI8Byl8wXKXGoNDkqcOh67M/lsFktLGZ1dDmqAfX4T4ZeQBXmXYFV1Z hoXzkKpdPBSodokjXexRyTnvoKmYUgniS+oJCl/HIp3YxR8pQU6Q5dmtRzVfqdH6kOwEGIfW so8q3k9VPlEWWhoCz75Fw8/wqC0= 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-n01.prod.us-east-1.postgun.com with SMTP id 5f71b2bea965393f18affbbe (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 28 Sep 2020 09:54:06 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8B357C433A0; Mon, 28 Sep 2020 09:54: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 74315C433CA; Mon, 28 Sep 2020 09:53:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 74315C433CA 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 v7 3/6] Asoc:qcom:lpass-cpu:Update dts property read API Date: Mon, 28 Sep 2020 15:23:28 +0530 Message-Id: <1601286811-25962-4-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601286811-25962-1-git-send-email-srivasam@codeaurora.org> References: <1601286811-25962-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 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.