Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2082259rdb; Mon, 20 Nov 2023 01:03:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBjx2WRsTIhBmYnzifICzk0AR2ldSxR+xfUysowTJKWeRR/1aObc9ArJOjgLR19kBDjUB1 X-Received: by 2002:a17:902:a413:b0:1cc:2f9d:6e9b with SMTP id p19-20020a170902a41300b001cc2f9d6e9bmr4777359plq.20.1700470992903; Mon, 20 Nov 2023 01:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700470992; cv=none; d=google.com; s=arc-20160816; b=C3emJjRpOfq9pgJVb7UANad2sgsKREM+yOiXGTfqyP4eYEMOEQJkcSLzdQb1d/pHNR NQkXxQIVN0w3475GW811OaMZDm0kQ/JYNFeAuyJJNtU/QPaIqCKazS2XuY+E8fvvuZhG CUBkcKeEy8fW/egyAmkfJCJIhiVQTUL2LrKD47PWkJBvZJhUPsA2nzQ4wY0uSG3pyiTU IhydnIVupkMA+Cq7SnkZy41DAvEOiH0g+xb9uxEC9ieMUMj4Cw73g2yZuBCUWEF/IG/S dUV9oR0iv7qs/r7fGsxKBUBkGGEWsKjpzPDYgSmlRWvCGwqEnk3XGDM7Coa+meflqPfE tWFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Z8/E/xZlfo9QLnO29b5tVQnNMcW4PlxC/KQPLbfbxIk=; fh=A+jClgYvDfjSfNFeppM0nXO/g8hEs2wgoxGLtMs4UUE=; b=T2ExBXx5Y/Wvxabnhko4rsg7D6SkTby+mGTp55FTPkP5NXSNQQllZhLMoYkoJHmVsd JEtDdkpXO16j7zDz0Squ5SEXb3BwjIlGzk9nhxTWW2wF1Wn6vwSn1+T3UV9ITcPm70Z+ NQEAHt6FvwcPweq8X262lus6MlxRIPbk2+88dB8A+3USRHHLo6hblZJAQlw2H8SQOyin f3opAqV+2dbzEr8Ftz9oMAdplRdKSVHbmIEe3+PMqiug1lKK3sCIW+ZSKRXRaRoJxy3t eaWO16bpe+XwiXN2AJ8oPTEMkil4rmJ7ldLiNkGy4MEAMjsOscBeBuvaX97vJPhOiOCn w3bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="jFG/4oQk"; 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 m7-20020a170902db0700b001cf5c9985efsi2253128plx.186.2023.11.20.01.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 01:03:12 -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="jFG/4oQk"; 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 AAC548059E6C; Mon, 20 Nov 2023 00:57:40 -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 S232083AbjKTI5i (ORCPT + 99 others); Mon, 20 Nov 2023 03:57:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232138AbjKTI5h (ORCPT ); Mon, 20 Nov 2023 03:57:37 -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 F2FB0AA; Mon, 20 Nov 2023 00:57:32 -0800 (PST) Received: from [100.107.97.3] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id D798B6603149; Mon, 20 Nov 2023 08:57:30 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700470651; bh=d23ZT5zVaG2k3DicMJVOBp0FoX7BK2oj+2zL9rkLlcU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jFG/4oQkTiPCuFeWdj+hKl+IkpmsojIFQH+cPvfEWyMlJLPEfzYgpC5vo3ZDDcbPj O/ygRUdSfa+jCME81v7FE0srl3G9yeaK9m1nub4CTXF70ffpom3huQQvk1bFence5W 4+Gsk+5L/npS23XvSMwPXt6c8++JAVJ9JUnXoWrdeA0Zzd8LmfqtGKoDKapMfTJ2o9 yN147CWiV5TaVRcAlkzg0NjsLqUEbvMH6M+Qhu5acHZkXc0Xi10CCtqJ9GbZaftzjK AxJGSyXO2Dfo9g+0ULn20qDO/J3Ax1Rt3TGn3NBeBltmuJa0u9ekcZXXxu1tOJls+4 5ZAGzDZSmIvnQ== Message-ID: <0b95d90d-5dd3-43da-a860-6a84019d097a@collabora.com> Date: Mon, 20 Nov 2023 09:57:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: mediatek: mt8186: trivial: align code Content-Language: en-US To: Eugen Hristev , linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com References: <20231117160914.65341-1-eugen.hristev@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231117160914.65341-1-eugen.hristev@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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]); Mon, 20 Nov 2023 00:57:40 -0800 (PST) Il 17/11/23 17:09, Eugen Hristev ha scritto: > No functionality change, squash some lines and align parameters for > function prototypes to 80 chars. > Please use scripts/get_maintainer.pl to get the correct recipients list. > 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) That's not needed, 86 columns is ok. > { > 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) Same here, not needed. > { > 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) ditto. > { > 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); The only change I agree on is this one... but I don't know if it's even worth making a commit for just this... Regards, Angelo