Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3000892pxk; Sun, 4 Oct 2020 21:15:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2g/A0jD2XV7y0jgYs7NyCB2kc2RQQpaqvp233RM0LBbApA8Vy+hqKodRA1Kh19xVETqXZ X-Received: by 2002:a17:906:1c90:: with SMTP id g16mr13050112ejh.115.1601871344684; Sun, 04 Oct 2020 21:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601871344; cv=none; d=google.com; s=arc-20160816; b=zxUd7kfaeZdgYCWRx/8FhuUPshPTfKM8n0N71hMcHd2bXM3UNj5nlq/e/JERL3LAli uFYvSEfD9KilfmjstuLrhNuMQ8UL6PKDbHoW3Kk8G8oyPrVQtiRVEQ63z4BTitIr6naA VaCwRkVChCUNNtH+9UKjGdOBWFF3su8M63g6OPVSrV+grSXBz8P86AaZZLBghTd4ckln Z/GHKauKy320xPXgTIKh1l/0I+OJAvWUdqG3otv7jjEH8zMQvFePjlSSmxiHUR/DwV8m v61xvD3/lL538YA0goplmzkwz9CwccyGYr8Bm7LgBWsz5jP0jblaTxANMPUCYC69ub8C Mnpw== 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=DnrHHXQ/dx96K50AIpYtSv1o91sWgW5Sic7/F28UBhs00m7mGs4a7TJL25a+LaV0r+ rzHpgzjVMpGM9dHjaW+Htx8rlsdu2XsUlLy8NZO2v5Ju+O5d+x06L/09nRzKlX9iwStD 3PegwSYN4EJpnq16MKnScKbE2PJaNRvEIYXxizPc4xxRC7VzXh5xMhTS/c+dRtHe035A k2ag1mG3a66HqWLVclO2u9WaAiUcpdXE90IM30XVlWuLNFYjmtARAwWZACpSEwzX6qFx 1C5t1oZkS+Zh+kZBvmUqPRsPI3SrmwjEWKcN7j33QK045CPpRj9B1e99qdvXe/fNyWVn KKRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BnS5Rqeu; 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 c17si6622460ejr.574.2020.10.04.21.15.22; Sun, 04 Oct 2020 21:15:44 -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=BnS5Rqeu; 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 S1725891AbgJEEOO (ORCPT + 99 others); Mon, 5 Oct 2020 00:14:14 -0400 Received: from z5.mailgun.us ([104.130.96.5]:28355 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbgJEEOM (ORCPT ); Mon, 5 Oct 2020 00:14:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601871252; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=kxK9LtfCElRb3WIXIcnYrmIbewkkXrexPQfvtxTLWR8=; b=BnS5RqeuLFR4V7opWisw6y5AljgeumHnGbG3Z9aBagbMpfQeNr5HgWW0fKBZNbTtM7jfa6Vu 43CVgWKbkn5hhAeEqRHOzBXjGlqSxFIM4m8bUrdj0g4CJu7Elp6aW2QRoIVeaXoCCOQYn4MJ tdfY1yfpSxx61EEmZTI+6b/t3Tw= 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-n05.prod.us-west-2.postgun.com with SMTP id 5f7a9d93319d4e9cb5544753 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 05 Oct 2020 04:14:11 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5EA87C43382; Mon, 5 Oct 2020 04:14:11 +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 DECAAC43385; Mon, 5 Oct 2020 04:14:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DECAAC43385 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 v9 3/7] Asoc:qcom:lpass-cpu:Update dts property read API Date: Mon, 5 Oct 2020 09:43:31 +0530 Message-Id: <1601871215-26200-4-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601871215-26200-1-git-send-email-srivasam@codeaurora.org> References: <1601871215-26200-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.