Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2889943pxk; Mon, 28 Sep 2020 02:55:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIGJftVruXf0YqcNhwLBkESlnPPX6exO4++sUI6rH0n2/oZKdIR5v+LXLP9HwjH2HmVA2l X-Received: by 2002:a17:906:e113:: with SMTP id gj19mr840194ejb.263.1601286953357; Mon, 28 Sep 2020 02:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601286953; cv=none; d=google.com; s=arc-20160816; b=xeiBGVfkvnCjY85eiI2hWNpco7pBkAv+de81iVT5o/Tk6DXY5KiQwSq0LRA9e4Ddyk /KH6i78oxSbKtvvp5ryO2CUPB/SVhTtCybKRpAfklT3uRz/73IthV0cvIxXc6s0SUEaN R+4ac83WCi7MZaCPlA9cKdHUi19jn8kEnMGQKeYtPrspPB2FzPLMgkKTgjAS+ZByEF1t aztgJh8+hVgvC8jmQ01HI0Syo0F/9i1kttWyY+1DEUOQeNv76sTpQkSn92XQ6RQLhYiZ gx7dAn3huoODd/De9RowPhAA8b3Y8EmqR6bz9Pamo14Eez7IqcEiDAcBirei0MKG8eiu jcYg== 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=0IGwxuW6Gsr5JtLe05vuXxpI+onW4OczS/NphW3AC/M=; b=sPNVBxfxly7CXe+lVtnodhYBUF6eraiannKDGtdvtyWRHTEJ5Wijq2qSkx0wkm5Ptw zfUh1h+qnVlPdYHJymZWgLcycJ3kx5QxTSgrkUSTvplqXD/HpP6MUpl3MYuuN8cJhQvx PcRUVSLF5UN9ZyRw0MHRl7lKm9Or1jHtIEeolsHmJgGLa2vP/zSa+1vPWvyj+T9GGEzh kdOooTac/nBclipJlXfgawyAg07ie759kAqsrK2HJJhaT+8WNle/Bd4DwC+D/t+TY9rN CEt7oR1vdScItKYwftNzDd98/KJGIvvnhHCJIiwWCsm+IhBsHX2bU4G7236e4hBNFA1q 3n9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="J0nG/WN9"; 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 sd28si280947ejb.302.2020.09.28.02.55.30; Mon, 28 Sep 2020 02:55:53 -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="J0nG/WN9"; 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 S1726722AbgI1JyP (ORCPT + 99 others); Mon, 28 Sep 2020 05:54:15 -0400 Received: from z5.mailgun.us ([104.130.96.5]:16249 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbgI1JyN (ORCPT ); Mon, 28 Sep 2020 05:54:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601286853; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=0IGwxuW6Gsr5JtLe05vuXxpI+onW4OczS/NphW3AC/M=; b=J0nG/WN99bIA7wwSk+GvLPYkpNiOw56GRjTrJrZuPuVUWaDTs6mdw0NO80GNpL6b6kRbsqcq CFTdX/uwzizp/ptTMlrtA9rKAMSO3/zA/sxUjVk8ZY//4eOJdUpnJAHWsdn/rTIkbA6i4uMO Thp2Z8R8g7SdLrFFXaNI6yWn8WE= 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-n03.prod.us-east-1.postgun.com with SMTP id 5f71b2c599ecd993e17ecc4c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 28 Sep 2020 09:54:13 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4E143C433A1; Mon, 28 Sep 2020 09:54: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 F148BC433F1; Mon, 28 Sep 2020 09:54:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F148BC433F1 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 Mandadapu Subject: [PATCH v7 4/6] Asoc: qcom: lpass:Update lpaif_dmactl members order Date: Mon, 28 Sep 2020 15:23:29 +0530 Message-Id: <1601286811-25962-5-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 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 Signed-off-by: Srinivasa Rao Mandadapu --- 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.