Re: [PATCH] MIPS: CPS: Use bitfield helpers

From: Thomas Bogendoerfer
Date: Mon Nov 29 2021 - 07:35:21 EST


On Mon, Nov 22, 2021 at 04:53:58PM +0100, Geert Uytterhoeven wrote:
> Use the FIELD_GET() helper, instead of open-coding the same operation.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> ---
> Compile-tested only.
>
> See "[PATCH 00/17] Non-const bitfield helper conversions"
> (https://lore.kernel.org/r/cover.1637592133.git.geert+renesas@xxxxxxxxx)
> for background and more conversions.
> ---
> arch/mips/include/asm/mips-cps.h | 19 +++++++------------
> 1 file changed, 7 insertions(+), 12 deletions(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]