mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Liam Girdwood <lgirdwood@gmail.com>,
	Jaroslav Kysela <perex@perex.cz>,  Takashi Iwai <tiwai@suse.com>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Cc: Nathan Chancellor <nathan@kernel.org>,
	 Alexandre Mergnat <amergnat@baylibre.com>,
	linux-sound@vger.kernel.org,  linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-mediatek@lists.infradead.org,
	Mark Brown <broonie@kernel.org>
Subject: [PATCH 2/7] ASoC: mt8365: Remove spurious unsigned long casts
Date: Sat, 07 Sep 2024 01:53:27 +0100	[thread overview]
Message-ID: <20240907-asoc-fix-mt8365-build-v1-2-7ad0bac20161@kernel.org> (raw)
In-Reply-To: <20240907-asoc-fix-mt8365-build-v1-0-7ad0bac20161@kernel.org>

The regmap APIs take unsigned ints not unsigned longs so casting their
arguments to unsigned longs is not a good choice, the constants being
cast here are all unsigned ints anyway.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/mediatek/mt8365/mt8365-dai-i2s.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/mediatek/mt8365/mt8365-dai-i2s.c b/sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
index 5003fe5e5ccf..6b4d8b7e24ca 100644
--- a/sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
+++ b/sound/soc/mediatek/mt8365/mt8365-dai-i2s.c
@@ -385,7 +385,7 @@ static int mt8365_afe_set_2nd_i2s_asrc(struct mtk_base_afe *afe,
 		/* disable IIR coeff SRAM access */
 		regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON0,
 				   COEFF_SRAM_CTRL,
-				   (unsigned long)~COEFF_SRAM_CTRL);
+				   ~COEFF_SRAM_CTRL);
 		regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON2,
 				   CLR_IIR_HISTORY | IIR_EN | IIR_STAGE_MASK,
 				   CLR_IIR_HISTORY | IIR_EN |
@@ -393,7 +393,7 @@ static int mt8365_afe_set_2nd_i2s_asrc(struct mtk_base_afe *afe,
 	} else {
 		/* disable IIR */
 		regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON2,
-				   IIR_EN, (unsigned long)~IIR_EN);
+				   IIR_EN, ~IIR_EN);
 	}
 
 	/* CON3 setting (RX OFS) */
@@ -456,7 +456,7 @@ static int mt8365_afe_set_2nd_i2s_asrc_enable(struct mtk_base_afe *afe,
 				   ASM_ON, ASM_ON);
 	else
 		regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON0,
-				   ASM_ON, (unsigned long)~ASM_ON);
+				   ASM_ON, ~ASM_ON);
 	return 0;
 }
 

-- 
2.39.2


  parent reply	other threads:[~2024-09-07  0:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-07  0:53 [PATCH 0/7] ASoC: mt8365: Fix -Werror builds Mark Brown
2024-09-07  0:53 ` [PATCH 1/7] ASoC: mt8365: Open code BIT() to avoid spurious warnings Mark Brown
2024-09-09 12:50   ` Alexandre Mergnat
2024-09-07  0:53 ` Mark Brown [this message]
2024-09-09 11:50   ` [PATCH 2/7] ASoC: mt8365: Remove spurious unsigned long casts AngeloGioacchino Del Regno
2024-09-09 12:51   ` Alexandre Mergnat
2024-09-07  0:53 ` [PATCH 3/7] ASoC: mt8365: Remove unused prototype for mt8365_afe_clk_group_48k() Mark Brown
2024-09-09 11:50   ` AngeloGioacchino Del Regno
2024-09-09 12:51   ` Alexandre Mergnat
2024-09-07  0:53 ` [PATCH 4/7] ASoC: mt8365: Make non-exported functions static Mark Brown
2024-09-09 11:50   ` AngeloGioacchino Del Regno
2024-09-09 12:52   ` Alexandre Mergnat
2024-09-07  0:53 ` [PATCH 5/7] ASoC: mt8365: Remove unused variables Mark Brown
2024-09-09 11:50   ` AngeloGioacchino Del Regno
2024-09-09 12:52   ` Alexandre Mergnat
2024-09-07  0:53 ` [PATCH 6/7] ASoC: mt8365: Remove unused DMIC IIR coefficient configuration Mark Brown
2024-09-09 11:50   ` AngeloGioacchino Del Regno
2024-09-07  0:53 ` [PATCH 7/7] ASoC: mt8365: Allow build coverage Mark Brown
2024-09-09 11:49   ` AngeloGioacchino Del Regno
2024-09-09 13:01   ` Alexandre Mergnat
2024-09-09 12:47 ` [PATCH 0/7] ASoC: mt8365: Fix -Werror builds Alexandre Mergnat
2024-09-09 15:48 ` Nathan Chancellor
2024-09-09 21:57 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240907-asoc-fix-mt8365-build-v1-2-7ad0bac20161@kernel.org \
    --to=broonie@kernel.org \
    --cc=amergnat@baylibre.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=nathan@kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®