Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3002024pxk; Sun, 4 Oct 2020 21:17:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydZTlwvYE6haxL6+NJFBqHV7jorE5Rh08+mylC9kYHZBBopW426DXco+UQAw9U0RuhaHAx X-Received: by 2002:a50:9e4f:: with SMTP id z73mr15119754ede.109.1601871470502; Sun, 04 Oct 2020 21:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601871470; cv=none; d=google.com; s=arc-20160816; b=w/iEksIy3aw16U+T5Se2G1Ajokgk9PNoQCAHhHc/pmIptdCAS/OWyx52XRB4vdi4RH 0aQkD2BfrKPuO6Pu9UO1oyuDO2FF/P24MCW/5a6jvebDAAyhFtVFXnHMfoKIxDsZftM3 bXHZwseUSP1Jgkta3S5/L/l7pc12hEYUja4Ee7Qoe1tSY7+bZl8Zd2GFFkjhTDS2Xkbd 38LfkmTSBdWJO5Um4ydlKYzdoFbseJVa3vfvsuABYAThs2PAn/Kko5hyDH3I7iEpc7hH vvf28dR0iUkWBirED+VcYRS5N2w3D5Fe2JayppbHRb6zeazLphEhkCrqAJkfPZJ02P7s u5eA== 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=vDwa3VtLj9SVfDzOLh9NtyRR1bWZapv9hssUo1gpWvj969nCsS3BsU3X9Oa22Bcyqi yL5TBE66q1jq8cWfGqZnL1ptwPCT/Xm4zxLVd3FpacaLenLSvdR82bAPoeBEgRE6pMXW eKesXELEjzjy3QYmfSeDTFvsnOaSaTiyzSa0bKeXYoINu/NhxOw7sWIYlbmI2NLxguv1 onQTVsoXQiQTLu1yx0uzjNvO6SWrlwxO6mERGe6iP3dVSZDXI+OH5xLAZ+hj2CN1wRrH BeH7ADEgSo+1m+GTmLd+v36uOYEm+WV8YNnB2BFjv8ajvQWBuA3biU+hAjQ+BPydfcPU 8Ufg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Z7nXPvLr; 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 n18si6284368ejz.158.2020.10.04.21.17.28; Sun, 04 Oct 2020 21:17:50 -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=Z7nXPvLr; 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 S1725904AbgJEEOT (ORCPT + 99 others); Mon, 5 Oct 2020 00:14:19 -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 S1725267AbgJEEOT (ORCPT ); Mon, 5 Oct 2020 00:14:19 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601871259; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=OyZzbSCMZvuV3yEOZsiya4LXwpjTPN3Uu7YR7mN2EKQ=; b=Z7nXPvLrnmOErrpl1Caw8nstFoGHH31C444WHVsZYaFY1yW/Y9fSKGMY0ongiU/aaJkP/mYp dvYC8ovTtLj60EXO+Ln+MeKSkx5ZtjLx3Mr5WPUsqWZf/3InyytSgZrjZE6t6en0r/ntFSe5 NrFx4/mg+AmDu8Jpi3J+6z83sP4= 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-east-1.postgun.com with SMTP id 5f7a9d99588858a30438348a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 05 Oct 2020 04:14:17 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 37D75C43395; Mon, 5 Oct 2020 04:14:17 +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 35A85C433CB; Mon, 5 Oct 2020 04:14:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 35A85C433CB 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 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order Date: Mon, 5 Oct 2020 09:43:32 +0530 Message-Id: <1601871215-26200-5-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 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.