[PATCH v15 10/24] watchdog: renesas_wwdt: Convert to common field_{get, prep}() helpers
Mikhail Kshevetskiy
mikhail.kshevetskiy at iopsys.eu
Fri Jul 3 13:56:13 CEST 2026
Drop the driver-specific field_get() and field_prep() macros, in favor
of the globally available variants from <linux/bitfield.h>.
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
drivers/watchdog/renesas_wwdt.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/watchdog/renesas_wwdt.c b/drivers/watchdog/renesas_wwdt.c
index 92e639a91bb..60f2ac466bf 100644
--- a/drivers/watchdog/renesas_wwdt.c
+++ b/drivers/watchdog/renesas_wwdt.c
@@ -13,9 +13,6 @@
#include <syscon.h>
#include <wdt.h>
-#undef field_prep
-#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
-
#define RSIP_CTL_CFG4 0xc0
#define RSIP_CTL_CFG4_OPWDEN BIT(3)
#define RSIP_CTL_CFG4_OPWDVAC BIT(5)
--
2.53.0
More information about the U-Boot
mailing list