Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp951576pxu; Wed, 7 Oct 2020 22:19:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywEDGUnr32hb9cfqbp95GXDcQ4Fx7PSRKCyKx0W01Lgbfu16gc5rAMxmQ8Y9To/CwFYTux X-Received: by 2002:aa7:cb83:: with SMTP id r3mr7054643edt.35.1602134394396; Wed, 07 Oct 2020 22:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602134394; cv=none; d=google.com; s=arc-20160816; b=YMQefMdP6XXXz6DzQM6bdjr7KN3LGwjjyegyUbOx5QsFIWbjLuUobvm3JdoyLv2HgO pqduMoHFxAPJAGbIqEZagucWvaGcODIklRpWsAfelDAzQcDoXjUEutO3x4R7iV1+2Kjf BxG+RfnsinoJfvzDZO1Kc3s3i67rApZ3PK+je2wsvtrX3pnzt/i+JN9FkFDQlGi7S/Ad LT0BaS8m7ts1qfCdPU8tXjN5Hm35g1ZpjlvH2hnbUYMo31bR4Jmijq118tQCNsw+hQcw pehsCGVwQO8HCBfOM2lY1DxkxUjq9+KI7fR0kps7PGh+OFAmfYzgKK52Ix82QMS2KJkr FVVQ== 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=OyZzbSCMZvuV3yEOZsiya4LXwpjTPN3Uu7YR7mN2EKQ=; b=XJ+5976ZaObGUMVEm5Z2mfh8zqZvmXrYO/+tm8HvvHREM1p/Ij5vfITSSW2/n9zml3 gpPHjfuk/7iBPLvMU5vRclLsgk8NaTHkPWTw2lQS68cb6iK3zU21sCbQ8IoRt7KOAG6T vAVGmskgyKaVgmLkKw9dTSa7dVLt8kygJZwzmaQKSkqn9lkY5qEv1/bipLbp+zUltcO2 hf2cCQvfcaO2AFMdUI+zBToFpOlWQf7Yrp909bIpFqvD7XMdTTAFIz98G43clcOI6wzA yfEhB2vkKaubQKFgwUurxZFbxhgv2bhhaBaJERzVNu+9pQF8vs8c8mWhenNdcFc50w7U QPlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VI58oNN2; 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 s8si3052832ejr.404.2020.10.07.22.19.31; Wed, 07 Oct 2020 22:19:54 -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=VI58oNN2; 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 S1728454AbgJHFRr (ORCPT + 99 others); Thu, 8 Oct 2020 01:17:47 -0400 Received: from z5.mailgun.us ([104.130.96.5]:57852 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgJHFRp (ORCPT ); Thu, 8 Oct 2020 01:17:45 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602134265; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=OyZzbSCMZvuV3yEOZsiya4LXwpjTPN3Uu7YR7mN2EKQ=; b=VI58oNN2hoddmm9w9O0HW6AuWKhEWHYyS61bOFvW0/6vrdAD960s8DxoPoeAdatX1adwxUo8 NH2U/gwwEn7LGp32pzq2+zHPsAQZIbzxYT5NGYXl7cbFbEzMJ5zHA/bL3K9HyrwFPMHI21nD DgDKq4yOyKF4vm6HYQuit0KL4NM= 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-n04.prod.us-west-2.postgun.com with SMTP id 5f7ea0f9319d4e9cb550edeb (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 08 Oct 2020 05:17:45 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E4D6FC4339C; Thu, 8 Oct 2020 05:17:44 +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 79A12C433A0; Thu, 8 Oct 2020 05:17:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 79A12C433A0 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 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order Date: Thu, 8 Oct 2020 10:47:00 +0530 Message-Id: <1602134223-2562-5-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 the lpaif_dmactl struct members order to match HDMI reg map members sequence. Separate Interface reg map as it is used for I2S control but not for HDMI control, to make use of bulk API, which makes code more readable. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Srinivas Kandagatla Signed-off-by: Srinivasa Rao --- sound/soc/qcom/lpass-platform.c | 8 ++++---- sound/soc/qcom/lpass.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index e7cf4e5..db0d959 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -71,13 +71,13 @@ static int lpass_platform_alloc_dmactl_fields(struct device *dev, rd_dmactl = drvdata->rd_dmactl; wr_dmactl = drvdata->wr_dmactl; - rval = devm_regmap_field_bulk_alloc(dev, map, &rd_dmactl->bursten, - &v->rdma_bursten, 6); + rval = devm_regmap_field_bulk_alloc(dev, map, &rd_dmactl->intf, + &v->rdma_intf, 6); if (rval) return rval; - return devm_regmap_field_bulk_alloc(dev, map, &wr_dmactl->bursten, - &v->wrdma_bursten, 6); + return devm_regmap_field_bulk_alloc(dev, map, &wr_dmactl->intf, + &v->wrdma_intf, 6); } static int lpass_platform_pcmops_open(struct snd_soc_component *component, diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index 51c9991..7089d4c 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -31,9 +31,9 @@ struct lpaif_i2sctl { struct lpaif_dmactl { + struct regmap_field *intf; struct regmap_field *bursten; struct regmap_field *wpscnt; - struct regmap_field *intf; struct regmap_field *fifowm; struct regmap_field *enable; struct regmap_field *dyncclk; @@ -110,17 +110,17 @@ struct lpass_variant { struct reg_field bitwidth; /* RD_DMA Register fields */ + struct reg_field rdma_intf; struct reg_field rdma_bursten; struct reg_field rdma_wpscnt; - struct reg_field rdma_intf; struct reg_field rdma_fifowm; struct reg_field rdma_enable; struct reg_field rdma_dyncclk; /* WR_DMA Register fields */ + struct reg_field wrdma_intf; struct reg_field wrdma_bursten; struct reg_field wrdma_wpscnt; - struct reg_field wrdma_intf; struct reg_field wrdma_fifowm; struct reg_field wrdma_enable; struct reg_field wrdma_dyncclk; -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.