summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2025-11-06 14:33:56 +0100
committerYury Norov (NVIDIA) <yury.norov@gmail.com>2025-11-24 14:15:46 -0500
commit138ab44108fad96c22b381ebfb6936ab9787aedc (patch)
tree55693be4d6b74450be756210d165442844e665c9
parent2fc00c008e9043ca66b711cc0df78a4d94da2e34 (diff)
soc: renesas: rz-sysc: #undef field_get() before local definition
Prepare for the advent of a globally available common field_get() macro by undefining the symbol before defining a local variant. This prevents redefinition warnings from the C preprocessor when introducing the common macro later. Suggested-by: Yury Norov <yury.norov@gmail.com> 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>
-rw-r--r--drivers/soc/renesas/rz-sysc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/renesas/rz-sysc.c b/drivers/soc/renesas/rz-sysc.c
index 9f79e299e6f4..b9880085d363 100644
--- a/drivers/soc/renesas/rz-sysc.c
+++ b/drivers/soc/renesas/rz-sysc.c
@@ -16,6 +16,7 @@
#include "rz-sysc.h"
+#undef field_get
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
/**