lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231117160914.65341-1-eugen.hristev@collabora.com>
Date:   Fri, 17 Nov 2023 18:09:14 +0200
From:   Eugen Hristev <eugen.hristev@...labora.com>
To:     linux-sound@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        linux-mediatek@...ts.infradead.org,
        angelogioacchino.delregno@...labora.com, kernel@...labora.com,
        Eugen Hristev <eugen.hristev@...labora.com>
Subject: [PATCH] ASoC: mediatek: mt8186: trivial: align code

No functionality change, squash some lines and align parameters for
function prototypes to 80 chars.

Signed-off-by: Eugen Hristev <eugen.hristev@...labora.com>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ