Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4340924pxk; Tue, 29 Sep 2020 23:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1KxYtZyX87O68zMpUxx88s7euyeU0H+kHrxfJN/tHGGo05SKOzvdHQBqXNpLi+srwwj8u X-Received: by 2002:a17:906:4d57:: with SMTP id b23mr1305448ejv.496.1601448240880; Tue, 29 Sep 2020 23:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601448240; cv=none; d=google.com; s=arc-20160816; b=SengwRa7YCQqvnx4+Lwh/iCo/zzonk84ZI3NiFV/oLKZEGruisTfPPRO2cfzq++fLx ItWiBoxyuOGipw2aCSO3rIlL/iyPVhUJygAhddD4EwAcWDWvzF3pw5bGeidGtew1cbfr 0v7u21C+f34xyOqTBMnnSaQHAPkTO1cAxrinw3L40iqblSk4fncvYQJwJ6Z4CoPRfZK9 O/IGRKGXaWuoZ9+qhOD7EtfTkGG7P0qveI2zGOFs4yLVESlWvuSd9RGRnCaju8fNnHBX Ximsc+e5oettanW6b746l0YtOQUdKPv+FwB/ABSG2QZSOJBy76B57L+v7TBII8J734qb ML8g== 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=dMb02POKdWkSK9BNRPZ0F09XNdG1ipmSS8ai/mS5TEYQXRYIX2T9m+B462DA9Shgew VQQjcmww/zzkAXKg9/LGtf+qXi2hm1/KBnNWxv9f1P2S+hsb85GhoZ1ZWOhlRuNTP7dj hGKpqfoLc2Ngzce+5wkZwvlJmon5QmTPaEtp8IXTgZEoVgm1ScQMGvxclHeAvY9SgkWe raQ8yCFT9/L4LVb41fJ/U4vbNki1aHDXq0KYeTbh4ZbSelFykcvUN8UlYA986TMzk8UH Cp/+hV9c8xAC3rFDNqepMD730ylnj7YBWhIXre+M6yXpQZg3vGSeelKnSDa0NCY5l4Dw hTtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=aHsHZXFN; 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 m15si522824ejg.633.2020.09.29.23.43.38; Tue, 29 Sep 2020 23:44:00 -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=aHsHZXFN; 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 S1728235AbgI3GkO (ORCPT + 99 others); Wed, 30 Sep 2020 02:40:14 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:52436 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbgI3GkL (ORCPT ); Wed, 30 Sep 2020 02:40:11 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601448011; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=kxK9LtfCElRb3WIXIcnYrmIbewkkXrexPQfvtxTLWR8=; b=aHsHZXFN8I0oVMxwSnkHkBRov36jUpeC7CpSFfb0MGn36rqVOhyNsipjVMnBp+jIxoEVqT4m gcEMPpw9od2e3p9Ks8eK5yUFVcpqdBED7YpYDkl3dtX/BiYb6AulWR+nPBZ+PwR2O+kx0ZGH ++cTYBVhqY5ka2xZtWbY+NoMr4c= 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-n04.prod.us-west-2.postgun.com with SMTP id 5f74284a7e9d6827ec9bff1c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 30 Sep 2020 06:40:10 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9DAFBC433A1; Wed, 30 Sep 2020 06:40:10 +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 0922FC43395; Wed, 30 Sep 2020 06:40:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0922FC43395 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 v8 3/7] Asoc:qcom:lpass-cpu:Update dts property read API Date: Wed, 30 Sep 2020 12:09:33 +0530 Message-Id: <1601447977-18115-4-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601447977-18115-1-git-send-email-srivasam@codeaurora.org> References: <1601447977-18115-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.