Skip to content

Commit 5ec64aa

Browse files
geertumiquelraynal
authored andcommitted
mtd: rawnand: sunxi: 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: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 5f68fb7 commit 5ec64aa

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/mtd/nand/raw/sunxi_nand.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
#include <linux/iopoll.h>
3030
#include <linux/reset.h>
3131

32-
/* non compile-time field get/prep */
33-
#undef field_get
34-
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
35-
#undef field_prep
36-
#define field_prep(_mask, _val) (((_val) << (ffs(_mask) - 1)) & (_mask))
37-
3832
#define NFC_REG_CTL 0x0000
3933
#define NFC_REG_ST 0x0004
4034
#define NFC_REG_INT 0x0008

0 commit comments

Comments
 (0)