Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp623742rdb; Fri, 17 Nov 2023 08:10:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGksLrBHq/rctD9CemFZSPLwehdhT7nguI9qTJnTweCsU5uzjhAOlhAXjkzBybmZ6DzCd8/ X-Received: by 2002:aa7:85c4:0:b0:690:ce36:8b00 with SMTP id z4-20020aa785c4000000b00690ce368b00mr18807289pfn.2.1700237403030; Fri, 17 Nov 2023 08:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700237403; cv=none; d=google.com; s=arc-20160816; b=ab/j3VDwXLCuap6mdXfhPRdwiQvYVcHjBAiiCOvvytdVfeQa7y3j0CVVoHrUCcZd1M RcpQcHts8P4jyNNv75WgTGoMcGOQAxcVAi4gX3nEQLXxIO4Bvtz5lzvJTV1ZBHUNYl89 KZeLMegrqnB/hVjdJbxQvgNrpWfq4pWZwCLPxi8gd5f3jKznrmajhTjkq5Hrj/WIclE3 apYZumxr+KfGWpkodPAW7UMN6So7imtYw1r5OqPQjzsikY5EIIjs0Hz5H5S2afo+kezY 4a9FD5ovElSre6Mpl0xN8/6QR/TSs4HrRPO2McYHWdgq0oO3maI5tEpXB9RmsWFxBhYG Kibw== 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 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cl22-20020a056a02099600b005c1ce3c9609si2320608pgb.889.2023.11.17.08.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:10:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; 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 2620:137:e000::3:7 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 4CAD480A919D; Fri, 17 Nov 2023 08:10:01 -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 S231793AbjKQQKA (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:01 -0800 (PST) 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; -- 2.34.1