diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2026-07-03 14:56:04 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-08 13:29:17 -0600 |
| commit | b8b9ca05c720d97c6f5f9d0738e7743de94e7a26 (patch) | |
| tree | fcb84612e346ed876d898a110f3c1c44395ccfbd | |
| parent | 2569e25ddd5aa323cd87c7a3819c3a4f4b32302f (diff) | |
watchdog: renesas_wwdt: #undef field_{get, prep}() before definition
Prepare for the advent of globally available common field_get() and
field_prep() macros by undefining the symbols before defining local
variants. This prevents redefinition warnings from the C preprocessor
when introducing the common macros later.
Signed-off-by: Mikhail Kshevetskiy <[email protected]>
| -rw-r--r-- | drivers/watchdog/renesas_wwdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/renesas_wwdt.c b/drivers/watchdog/renesas_wwdt.c index f6f508c95c2..92e639a91bb 100644 --- a/drivers/watchdog/renesas_wwdt.c +++ b/drivers/watchdog/renesas_wwdt.c @@ -13,6 +13,7 @@ #include <syscon.h> #include <wdt.h> +#undef field_prep #define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) #define RSIP_CTL_CFG4 0xc0 |
