Re: [PATCH 1/7] ASoC: mt8365: Open code BIT() to avoid spurious warnings

From: Alexandre Mergnat
Date: Mon Sep 09 2024 - 08:51:28 EST


Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>

On 07/09/2024 02:53, Mark Brown wrote:
The mt8365 driver uses bits.h to define bitfields but BIT() uses unsigned
long constants so does not play well with being bitwise negated and
converted to an unsigned int, the compiler complains about width reduction
on a number of architectures. Just open code the shifting to avoid the
issue.

Generated with s/BIT(/(1U << /

--
Regards,
Alexandre