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: 13459097 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85071C197A0 for ; Fri, 17 Nov 2023 16:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MxiGG46gMyHe90UkQ+wCf2YlIW2aDV2ogx0gqxmqiJU=; b=YOhQ2cvidT0ofM bkWcmXiGXiQG/S2Bw/NJ9aZbxGcwJSk8tMw7zgpzew1s0ye5bQhTbajhlHgafz3tJBUXJHS7Azhtm TYzfalUo/giySh+KueStkSZqAcqOLzjkInxN+I0E5qK0eRJfFdK0vtAJ1m/s9EKyHMoWcs1RzQk6v /nBrTXivwyXkbqBAOseXTHEBIy40oaaSICglf7ygH1LTJ7Y7QWeAZMXe7tdA79O4vZ6LMr+xfK7Sa rZvQveVph6obEKNCPLOG3btE9dzDaprjw50N5qOSJsLAEfCILkrChELVApC3UtEQoPNiIvJxg0EGM 9ikfaLw3kJrurPTu0Y6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r41Pq-006tb2-1Q; Fri, 17 Nov 2023 16:09:58 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r41Pn-006taQ-1C; Fri, 17 Nov 2023 16:09:56 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231117_080955_607772_611584C7 X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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;