Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3019216pxk; Sun, 4 Oct 2020 21:55:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW4O/YzMBN32mcQFQ7WpGW5E3hamz+/jYAJ2XNqbOzSshe/O5IaeIUZJ/TiWj0dJT8y2Ss X-Received: by 2002:a17:906:441:: with SMTP id e1mr13211364eja.396.1601873751226; Sun, 04 Oct 2020 21:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601873751; cv=none; d=google.com; s=arc-20160816; b=0gMV2q1GCrYCGLE7pOODsBaz0tVeGMjQxh6HEMvYlMwx3S1scVZhYb5uBjTMEAT+ei m0RLa1ohQXUTdrn0WFnWJHeT3y3iytykA2TNmmbbXr1lPx4EVtVrTTqVsSj1KBgtoq79 lOAWH9BgH1r6Dzoq7rMMtGGJm2Ugswcf/fh5PC/KqIZl7YD1wl4/Eia06WJFsKmgz7Iv R7tNUgfmudUYqWsrVuAslHSUWV5p8Dfz3HF2VZeZtQsybTw2sq7GwA6/ihH4DTSSvDrX AvDJV3Ku1/+zVaJXVOUHqVKjaro57cnwXSJ8oZEyQpVdhlOuUozI4cE3O073RdwZj2Gj HcMg== 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=zkqHmpRuykqqhAXaaMvGFj1BbZG0wGawVdWn47oKyi5CQ7O2KaZlhZhQJ2vTQ3oHz3 E4Unv8zUVnwpDnS5kXfm3r9oSgi47BKtuEfoICaSfy8u2iL/g/bufK8lzRFIA8RpEyT0 l+uQ/ZMPz35JvjRc8X+FzQ3LMaltNhLBV14xq+NzSfPNnPf28RWJzZOjSiK80lwzY1j/ 4tM0gHjeDdiF9gCOLRBhI63cBlq5HAa0a3XF9ZeDBCGun5T2w0SsAR4U/r48dQpNvniX BkMsBJEfUskbXrGrgSuf9M5a1bFuHlwTT1qMOgMwKQRd8ElGgKQ9yu6M9fDj4cbE6/Xg rMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=vhvPChzv; 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 a20si8335858edj.272.2020.10.04.21.55.28; Sun, 04 Oct 2020 21:55:51 -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=vhvPChzv; 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 S1725977AbgJEEtP (ORCPT + 99 others); Mon, 5 Oct 2020 00:49:15 -0400 Received: from z5.mailgun.us ([104.130.96.5]:42550 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbgJEEtO (ORCPT ); Mon, 5 Oct 2020 00:49:14 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601873354; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=OyZzbSCMZvuV3yEOZsiya4LXwpjTPN3Uu7YR7mN2EKQ=; b=vhvPChzvCfr9fEFS1bVFulm/UHIt2ae3OtRxWBwHe5HUegWYXHTQLtkwaNmg7irz5leDnE4a 6BeU01ItOrPQUZnblz09d+EO291PxunN6J8dwJsS57mnGb1fBJUq6rpAgZskUZ+ZSVO16LvW EEBDRWa6UKEW6bAdYjEzwB+fNrc= 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-n02.prod.us-east-1.postgun.com with SMTP id 5f7aa5c9ef891f1ee2cbbc7b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 05 Oct 2020 04:49:13 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DFD4EC433FE; Mon, 5 Oct 2020 04:49: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 DDDF3C433A1; Mon, 5 Oct 2020 04:49:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DDDF3C433A1 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 v10 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order Date: Mon, 5 Oct 2020 10:18:27 +0530 Message-Id: <1601873310-1894-5-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601873310-1894-1-git-send-email-srivasam@codeaurora.org> References: <1601873310-1894-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.