From nobody Mon Feb 9 04:08:51 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29BAE3A0E84 for ; Thu, 15 Jan 2026 14:26:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768487188; cv=none; b=i1NHPJL94GuJwlROegpA82acPj2HISJRzxzYm1ah0J2qh+EIXYsg/N+2E2wXFpfwSdjyuQbyNG41yrlxbZn2C2AUx7izXnE019E93ddf9Jh0n6KeR0H6X/LC/765gY/ZOpreeZu1LhAParFHo0VUYruXWxcfORCyFpi8Noott9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768487188; c=relaxed/simple; bh=4Tt+xI3ReNB/WF4Ff9YnzCsgzAJwSAOhvstZ26Nw3+c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jTw2I0x/n6iPw00wdcPs+u2OX96gk8US9I28lbKXdsHoggIp7Bol7Pdkb4/6HQivdPrRThlgzPeHdumkW72y4ojyOk2pZV3YUTYHCEeLFGioJB/ANsElukPX8pyYoK7X0RHqrw5bRHiWF7BfZWDbZj5M59odi8kFQ6dRLbrJKJU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F6C7C116D0; Thu, 15 Jan 2026 14:26:26 +0000 (UTC) From: Geert Uytterhoeven To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Richard Genoud Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v7] mtd: rawnand: sunxi: Convert to common field_{get,prep}() helpers Date: Thu, 15 Jan 2026 15:26:22 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Drop the driver-specific field_get() and field_prep() macros, in favor of the globally available variants from . Signed-off-by: Geert Uytterhoeven Acked-by: Miquel Raynal --- 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 #include =20 -/* 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 --=20 2.43.0