From patchwork Fri Nov 17 16:09:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 166241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp638677vqn; Fri, 17 Nov 2023 08:10:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3kBmvXWw2LQ0Lq8FPCXKmCx1RbX3lnWrD/8DGC7ulz7uoRnkRIczz3RaS5JkmfahsdFB/ X-Received: by 2002:a05:6e02:1645:b0:35a:a451:7e3 with SMTP id v5-20020a056e02164500b0035aa45107e3mr26418289ilu.30.1700237404273; Fri, 17 Nov 2023 08:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700237404; cv=none; d=google.com; s=arc-20160816; b=vyeehjazNm/6S2uK/79lRHP8X9R3xsW143tPEpnwHesqXYNoJ4KB6m4I4tcwY8KtlJ RP7gIkd82oHRuTTb+KSlFlgaKjr0w7SzHPFfb2PCVfJorbBRQvfaZyhfm/H+KE8Px2hz SFUCUhbSh6TkLj8LoXV/Rq8Mi6PUg0pO5hKQA2nu/MT+ysbUVHz2UNabI6a31uqVon03 QibbsRE8e8cE3FTaiHGS8pGWhciz4l8Olmhrx+s9VHd6mGXv6ycJxti3bzEQL+rQMBYz 07ETbeE6zqetSoAvLCEtfdmdEJu0j22zL6YHY21DGxuDuQ/SCTBcR5qscvrFTtn+8f3k 8B2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bJEiGYREljVyOaGa88GkHhzgz4uIfrM9S8X8Hjvo1Ck=; fh=UeET29cgFS39b5v6p97B2SHH4P0fMYmtL36fUe+2wx8=; b=swR2xrI4Ba6eL0nzlrrjIu+/oVeTI/IzuUgKytP6z7EE6IOuKr3l1nl3JctKKoxuf5 dOPIw7YkMvWI8+4XidSncbp5VBkFo8CCykCUHXfScAazbcixJPwiFKHHkBBzmhOK31Da PDaHQw+odZjIB2VKdNTEai3UtsV3tOBG84amzFYN0veVi9pyU/8QMv7VtyUrfhEJteHV uhpcjeDGqBL+7HnUeVdQD7TmNidHrHe1r6kZ9+F0Y3KNdbjg9WMJd0QhC/nnwvIkc4hZ dtRSrxciyb9bdosMUObSplHGI/6Xas8EUY8N+GSzIxlu2UyoCyNEh1yAVEnmmrNttc92 bsdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=noF239ht; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o4-20020a656144000000b005c203ad0d45si1374906pgv.821.2023.11.17.08.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:10:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=noF239ht; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AEE3A80ABFD6; Fri, 17 Nov 2023 08:10:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232759AbjKQQKA (ORCPT + 30 others); Fri, 17 Nov 2023 11:10:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230513AbjKQQJ7 (ORCPT ); Fri, 17 Nov 2023 11:09:59 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF2690; Fri, 17 Nov 2023 08:09:52 -0800 (PST) Received: from eugen-station.. (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id A8F966607391; Fri, 17 Nov 2023 16:09:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700237391; bh=Ycelbx5JSmV5iz5PlGjQ6zsV56RiWxLVmAdDb6E+JqA=; h=From:To:Cc:Subject:Date:From; b=noF239htLY3Rc7NKTiCfgwk8Q2Qg/BvlDLF9eysEFV/nMDq3Y1aexudlP9w6a2xZK XUCzH0hyhixMR3AUMfDWVCMLwDKMlCTTkj3QJ52/0gasDX+ZXAr3U8WaHhNuQF1HqS e6OC9411fbUzvBRdXys7VPqcxXv9kPD76JsPDNjZbq7qT7n0Sl+/oK5ZrRROjov1oG coJrDZGHTD6tJIz4Wy26Hab73UQfyo84Rjt3BuT5wWSAfjtu9rYSlVrwrZS6Cm6FRS 3Ie2UO+6cF3cuvWwEGNDj2UyyCiTGOV5E5dK/eTTqijOHHKOpt3RB1aynwAWroPsIL qmbPx989f6u6g== From: Eugen Hristev To: linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, angelogioacchino.delregno@collabora.com, kernel@collabora.com, Eugen Hristev Subject: [PATCH] ASoC: mediatek: mt8186: trivial: align code Date: Fri, 17 Nov 2023 18:09:14 +0200 Message-Id: <20231117160914.65341-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 08:10:02 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782828136593737378 X-GMAIL-MSGID: 1782828136593737378 No functionality change, squash some lines and align parameters for function prototypes to 80 chars. Signed-off-by: Eugen Hristev --- sound/soc/mediatek/mt8186/mt8186-afe-control.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sound/soc/mediatek/mt8186/mt8186-afe-control.c b/sound/soc/mediatek/mt8186/mt8186-afe-control.c index 55edf6374578..dda648c1e8f8 100644 --- a/sound/soc/mediatek/mt8186/mt8186-afe-control.c +++ b/sound/soc/mediatek/mt8186/mt8186-afe-control.c @@ -181,7 +181,8 @@ static unsigned int pcm_rate_transform(struct device *dev, unsigned int rate) return MTK_AFE_PCM_RATE_48K; } -unsigned int mt8186_tdm_relatch_rate_transform(struct device *dev, unsigned int rate) +unsigned int mt8186_tdm_relatch_rate_transform(struct device *dev, + unsigned int rate) { switch (rate) { case 8000: @@ -222,7 +223,8 @@ unsigned int mt8186_tdm_relatch_rate_transform(struct device *dev, unsigned int return MTK_AFE_TDM_RELATCH_RATE_48K; } -unsigned int mt8186_rate_transform(struct device *dev, unsigned int rate, int aud_blk) +unsigned int mt8186_rate_transform(struct device *dev, unsigned int rate, + int aud_blk) { switch (aud_blk) { case MT8186_DAI_PCM: @@ -234,14 +236,13 @@ unsigned int mt8186_rate_transform(struct device *dev, unsigned int rate, int au } } -int mt8186_dai_set_priv(struct mtk_base_afe *afe, int id, int priv_size, const void *priv_data) +int mt8186_dai_set_priv(struct mtk_base_afe *afe, int id, int priv_size, + const void *priv_data) { struct mt8186_afe_private *afe_priv = afe->platform_priv; void *temp_data; - temp_data = devm_kzalloc(afe->dev, - priv_size, - GFP_KERNEL); + temp_data = devm_kzalloc(afe->dev, priv_size, GFP_KERNEL); if (!temp_data) return -ENOMEM;