[<prev] [next>] [day] [month] [year] [list]
Message-ID: <c5e1377b7a9b5cd6f08296ada5520e19951fe002.1768487070.git.geert+renesas@glider.be>
Date: Thu, 15 Jan 2026 15:26:22 +0100
From: Geert Uytterhoeven <geert+renesas@...der.be>
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Richard Genoud <richard.genoud@...tlin.com>
Cc: linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert+renesas@...der.be>
Subject: [PATCH v7] 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@...der.be>
Acked-by: Miquel Raynal <miquel.raynal@...tlin.com>
---
v7:
- Add Acked-by,
v6:
- New.
---
drivers/mtd/nand/raw/sunxi_nand.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c
index 9dcdc93734cbff39..e66adfcca7cd63fb 100644
--- a/drivers/mtd/nand/raw/sunxi_nand.c
+++ b/drivers/mtd/nand/raw/sunxi_nand.c
@@ -29,12 +29,6 @@
#include <linux/iopoll.h>
#include <linux/reset.h>
-/* non compile-time field get/prep */
-#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 NFC_REG_CTL 0x0000
#define NFC_REG_ST 0x0004
#define NFC_REG_INT 0x0008
--
2.43.0
Powered by blists - more mailing lists