soc: renesas: rz-sysc: Convert to common field_get() helper

Drop the driver-specific field_get() macro, in favor of the globally
available variant from <linux/bitfield.h>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
This commit is contained in:
Geert Uytterhoeven
2025-11-06 14:34:09 +01:00
committed by Yury Norov (NVIDIA)
parent bb0e7fda87
commit 610c4408a2

View File

@@ -5,6 +5,7 @@
* Copyright (C) 2024 Renesas Electronics Corp.
*/
#include <linux/bitfield.h>
#include <linux/cleanup.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
@@ -16,9 +17,6 @@
#include "rz-sysc.h"
#undef field_get
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
/**
* struct rz_sysc - RZ SYSC private data structure
* @base: SYSC base address