Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Geert Uytterhoeven and committed by
Miquel Raynal
5ec64aa7 5f68fb7e

-6
-6
drivers/mtd/nand/raw/sunxi_nand.c
··· 29 29 #include <linux/iopoll.h> 30 30 #include <linux/reset.h> 31 31 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 - 38 32 #define NFC_REG_CTL 0x0000 39 33 #define NFC_REG_ST 0x0004 40 34 #define NFC_REG_INT 0x0008