Skip to content

Commit 610c440

Browse files
geertuYuryNorov
authored andcommitted
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>
1 parent bb0e7fd commit 610c440

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/soc/renesas/rz-sysc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Copyright (C) 2024 Renesas Electronics Corp.
66
*/
77

8+
#include <linux/bitfield.h>
89
#include <linux/cleanup.h>
910
#include <linux/io.h>
1011
#include <linux/mfd/syscon.h>
@@ -16,9 +17,6 @@
1617

1718
#include "rz-sysc.h"
1819

19-
#undef field_get
20-
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
21-
2220
/**
2321
* struct rz_sysc - RZ SYSC private data structure
2422
* @base: SYSC base address

0 commit comments

Comments
 (0)