diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2026-07-03 14:56:14 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-08 13:29:18 -0600 |
| commit | 0a1ca728f97f433f1b264c541c0376818dc88631 (patch) | |
| tree | a9571c2e93ec77fe6d93b72b51a802f34021bdc7 /drivers | |
| parent | c02633a823b837cf59d84324472ce4169a39dfa5 (diff) | |
power: domain: renesas-r8a78000: Convert to common field_{get, prep}() helpers
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 <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/power/domain/renesas-r8a78000-power-domain.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/power/domain/renesas-r8a78000-power-domain.c b/drivers/power/domain/renesas-r8a78000-power-domain.c index 23fd35cd7f3..57b3b56b2d9 100644 --- a/drivers/power/domain/renesas-r8a78000-power-domain.c +++ b/drivers/power/domain/renesas-r8a78000-power-domain.c @@ -11,6 +11,7 @@ #include <dm/lists.h> #include <linux/io.h> #include <linux/iopoll.h> +#include <linux/bitfield.h> #include <power-domain-uclass.h> #include <reset-uclass.h> @@ -21,11 +22,6 @@ #include <dt-bindings/power/r8a78000-power-scmi.h> #include <dt-bindings/reset/r8a78000-reset-scmi.h> -#undef field_get -#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1)) -#undef field_prep -#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask)) - #define PKC_PROT_LOCK 0xa5a5a500 #define PKC_PROT_UNLOCK 0xa5a5a501 |
