board: renesas: gen5-cm33: 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 <mikhail.kshevetskiy@iopsys.eu>
This commit is contained in:
committed by
Tom Rini
parent
575717f4b6
commit
d26cb20e6b
@@ -21,11 +21,6 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user