Skip to content

Commit 1b084d8

Browse files
committed
ASoC: mt8365: Remove spurious unsigned long casts
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. Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Nathan Chancellor <nathan@kernel.org> # build Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-2-7ad0bac20161@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d01c6a3 commit 1b084d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sound/soc/mediatek/mt8365/mt8365-dai-i2s.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,15 @@ static int mt8365_afe_set_2nd_i2s_asrc(struct mtk_base_afe *afe,
385385
/* disable IIR coeff SRAM access */
386386
regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON0,
387387
COEFF_SRAM_CTRL,
388-
(unsigned long)~COEFF_SRAM_CTRL);
388+
~COEFF_SRAM_CTRL);
389389
regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON2,
390390
CLR_IIR_HISTORY | IIR_EN | IIR_STAGE_MASK,
391391
CLR_IIR_HISTORY | IIR_EN |
392392
FIELD_PREP(IIR_STAGE_MASK, iir_stage));
393393
} else {
394394
/* disable IIR */
395395
regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON2,
396-
IIR_EN, (unsigned long)~IIR_EN);
396+
IIR_EN, ~IIR_EN);
397397
}
398398

399399
/* CON3 setting (RX OFS) */
@@ -456,7 +456,7 @@ static int mt8365_afe_set_2nd_i2s_asrc_enable(struct mtk_base_afe *afe,
456456
ASM_ON, ASM_ON);
457457
else
458458
regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON0,
459-
ASM_ON, (unsigned long)~ASM_ON);
459+
ASM_ON, ~ASM_ON);
460460
return 0;
461461
}
462462

0 commit comments

Comments
 (0)