Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4341506pxk; Tue, 29 Sep 2020 23:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCsDYQDQd7u6J03kdIzqtsEkfAPzyJxYBnFBznp+MkjL8aEdZ9P+FTKJI74gnyUhhvW/B5 X-Received: by 2002:a17:906:390d:: with SMTP id f13mr1324360eje.86.1601448309219; Tue, 29 Sep 2020 23:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601448309; cv=none; d=google.com; s=arc-20160816; b=im8nnxtN1TSjc2GzGknWJ27BTsReNJyDJz42yu2d6BDvlp2n6WjZ1FS6KrErK9G6xi ogGQUeFwkuPZ0Su6OyWIjg+rQlYWau83sB2XiwTiEUyTajaWvP82obVXrwC04MRWefz6 y9411k0oEWdsWlbwQQULjQ3Hiwl8ZSmyxgnb4Z1MjNt+40bqW27bFZww4wcQKb+ki53h WoVXZjtu5Um3b4lQ4riZSJgaTz/xGBBUiVlNs8HbsrPBf29R2IQgiKe6VmkiydQ7qcJn aU0X5okfJuq8q4x84S+9MyXCq4HVck9T4kDKVn56p6DRArBwywD5fV2uJzhJhgFa+KKx JsMQ== 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=yjMw99oXsMaP7Zg81spDt+K9M+CnXGiaON2UB76vB2oaJCLPXXfZ2R6zk2XvCavUs1 WzFGXjHLEIYgx1PEEht2UDXyAtv/fhZ/tCjyHR42kA4HahisMr13pFOflwtzmbfCdMwY XJym/CrYWybg7wBfih1lyZhIOBxYI1QX9wQ55D6/yCPhKsuUkKEKM7weEJd8s3xf2wwe kBV6Jkv0madqJOaHKAHQmC1z7xtRbXbQ1/Y7FIFsaWomQt8xPf+EWBqUfvm0Vgd7Ku2I fFOo8Qq89m9ZXDXUOtm+bMhrNJa3wTjdTolG53fQVJkw44w+U2Qh0LD68aJuYlgboxKE cTWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=O9es3Kcc; 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 g11si415286edy.476.2020.09.29.23.44.46; Tue, 29 Sep 2020 23:45:09 -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=O9es3Kcc; 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 S1728349AbgI3Gkx (ORCPT + 99 others); Wed, 30 Sep 2020 02:40:53 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:31428 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728310AbgI3Gkw (ORCPT ); Wed, 30 Sep 2020 02:40:52 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601448052; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=OyZzbSCMZvuV3yEOZsiya4LXwpjTPN3Uu7YR7mN2EKQ=; b=O9es3KccEkGbNQbNg9SPGxrbVdQEGF9jGdHcDZWw89CbZ2AcZYYqzyVdKPjnAwdWtbOr7S7B vOADwlTjARwCZmxzjCa1nObocNvwbkNI71xYDiUHVnwFVDKkiaiZ4ryUArMKxk9LY52S/11S 1M5XYVejS4zyuPHS8G7t4KSauTM= X-Mailgun-Sending-Ip: 69.72.42.4 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 5f742852e6be23d0df59adb5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 30 Sep 2020 06:40:18 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 81766C433F1; Wed, 30 Sep 2020 06:40: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 7EF63C43385; Wed, 30 Sep 2020 06:40:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7EF63C43385 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 v8 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order Date: Wed, 30 Sep 2020 12:09:34 +0530 Message-Id: <1601447977-18115-5-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601447977-18115-1-git-send-email-srivasam@codeaurora.org> References: <1601447977-18115-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.