[PATCH v14 04/18] watchdog: renesas_wwdt: Convert to common field_{get, prep}() helpers
Mikhail Kshevetskiy
mikhail.kshevetskiy at iopsys.eu
Thu Jul 2 07:57:30 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>
---
drivers/watchdog/renesas_wwdt.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/watchdog/renesas_wwdt.c b/drivers/watchdog/renesas_wwdt.c
index f6f508c95c2..60f2ac466bf 100644
--- a/drivers/watchdog/renesas_wwdt.c
+++ b/drivers/watchdog/renesas_wwdt.c
@@ -13,8 +13,6 @@
#include <syscon.h>
#include <wdt.h>
-#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