Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3634558pxk; Tue, 29 Sep 2020 02:05:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi39wRBxW1hlT8l+Kcu9MIliNCSH9ZDQ0x/EPxZ+yELBHtSWUTROGMYs2qSO069K3Qfbtg X-Received: by 2002:aa7:c511:: with SMTP id o17mr2199391edq.300.1601370334539; Tue, 29 Sep 2020 02:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601370334; cv=none; d=google.com; s=arc-20160816; b=hfTzdbbALhWSEV2roheICkUlfcaTM7fUNesX8m7VFPD72/DNzzBJnDFcqih8OYTLuu DdD6He0BVgMlbqfOZ6diPeSoXhqSo94YzfK0zXrA5HXMb+a29bXHhJtcV67F8WB9COx7 7vdTa/MY8UEFJZfVGkEg9QCexeq6HldMBCWJNr3DORkv31esWATVbLdgB58c2wBFbfrx VYrIBknqXeapcDEHtN0711TPhCw6twviwMfufRSeNnTdPc3scnz/o5mTVvqJ0NbPbzKJ nzrTg9/XT1vh2NU6/82KuDoQ9609JzgNW3BWAE1PtiaA2LA8oqiGFh7qJHbNjLkBIeDS caUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kRWnM0ioVvz9IYrqqipklykFed9uM/70cGkF4NfDI6c=; b=V/v3PcauvWtGAEODcozQVZVL+ceAWp2bmpSerlwBOYVN0ujq45BUzGHSb4ZPYhPtu0 J74iy1JkMFf282yHxoiRNPhN9tqX59mtRJaHmHgOHhIjZiYbm8oYq21ZiulGBuMIiVVe AsY5wMOF5QU/So4WsUw0t4PX5H+IzShw31DkaGyFvQSQQyh44S+sDO2Z6wFsGT4P1LMI MwEqr1Qh7oQDKzmDVqBOShB1Azc9FUiM7WnFr3oFpM/PzEAUtWSW+8qeunAMXwv9CtYY 03lVTbpb/IvVwnZfTyXaur/vPO3UxMqJWDbS/axjYbumTo8qcHLK53VHC7XQueraFpr/ fEhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZVlc6lz1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si2550305edn.403.2020.09.29.02.05.12; Tue, 29 Sep 2020 02:05:34 -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=@linaro.org header.s=google header.b=ZVlc6lz1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727790AbgI2JCE (ORCPT + 99 others); Tue, 29 Sep 2020 05:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727746AbgI2JCB (ORCPT ); Tue, 29 Sep 2020 05:02:01 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 030EEC0613D1 for ; Tue, 29 Sep 2020 02:02:00 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id t10so4473317wrv.1 for ; Tue, 29 Sep 2020 02:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kRWnM0ioVvz9IYrqqipklykFed9uM/70cGkF4NfDI6c=; b=ZVlc6lz1lRWD181DSCDkpTiNShg+lHhaTwBVu+ELTyiTBT7MU0ukZYxVCcfWOuJY4Y BpvdtzVpzo9Oa8APHUiJWh8Qx4a4MRhch7jFDndojo6lNS35N1q7v5M4cS6xV95QJDcd M2tUrPiYXhGxuKHGX80ZOoGOCpzXXSNc+limBg/DXhUzdkDcpdsjEEdgw6MufgRcTBMs C6kPMtcP5VqnNVoo2QtYq3yTBjqc6aIFB75HqaBMHznDDjlIB6YuBU/B0pMyXsHnuAVC d6AhiFLmhv6YFToktSC1hm9xxZOrQiogAJ2kMy1fVNTcKMbCBZEvplnvizwgXLlxHkLM l/1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kRWnM0ioVvz9IYrqqipklykFed9uM/70cGkF4NfDI6c=; b=a31QxImUZuV6/8yY68rZpFa6tWFiMo0E/MM2DfkDsP63SOfkwTMLmmPzNhnAbefiZW o8aTxYsJ1lOcrJVfA7pyGLFAgfftTPc0xcYi12DViAlrDaEq4Kh0WVhmmmKA+y+QN+x/ 74QSCOUr9WcZ7rx/A8oK0GaB/9nQwI6MocgExAsUookYpL+h4MhDUoHJEoX3IE60UO9M j3z7qwXx/MRueEGOyMEwBNOeOSgYU1e3tpgDmefGxFDiRe3KzL4bNtargFuslshzLPPA zevOsM+MRAIGETyA8Nj1/TXJWyMVe7S6/SvYpYBmlbV/MEGArkhXhLYQ5i+HvW6R2Hqn p1Hw== X-Gm-Message-State: AOAM533jhkYOsLOMcfIGUGjKHmZCEOVq4EqD3mKZpZf7mjDOlFyO5yis j/rzyNtYGUC8aYAddktXsMuVUw== X-Received: by 2002:adf:a49d:: with SMTP id g29mr3250832wrb.219.1601370119519; Tue, 29 Sep 2020 02:01:59 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id v204sm4754038wmg.20.2020.09.29.02.01.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2020 02:01:58 -0700 (PDT) Subject: Re: [PATCH v7 3/6] Asoc:qcom:lpass-cpu:Update dts property read API To: Srinivasa Rao Mandadapu , 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, 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 References: <1601286811-25962-1-git-send-email-srivasam@codeaurora.org> <1601286811-25962-4-git-send-email-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: <4ee2a9ad-e252-0f80-0f50-6192f9d20876@linaro.org> Date: Tue, 29 Sep 2020 10:01:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1601286811-25962-4-git-send-email-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/09/2020 10:53, Srinivasa Rao Mandadapu wrote: > 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 Reviewed-by: Srinivas Kandagatla > --- > 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; > >