]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mmc: mtk-sd: use GENMASK and FIELD macros
authorDavid Lechner <dlechner@baylibre.com>
Wed, 21 Jan 2026 22:36:24 +0000 (16:36 -0600)
committerPeng Fan <peng.fan@nxp.com>
Tue, 3 Feb 2026 14:10:13 +0000 (22:10 +0800)
commitfe62fd3b8b7cf0fb9915ec33eb4794624c38303a
treecd005ec352547aadc4a603aafd6689b2c57bbeb9
parent1de103fc29761fa729dffaa15d0cfb2766be05e4
mmc: mtk-sd: use GENMASK and FIELD macros

Replace separate mask and shift definitions with GENMASK and FIELD_*
macros for better readability and maintainability.

All macros ending in _M have the suffix dropped. The value remains the
same but is now generated with GENMASK. All macros ending in _S are
removed and their uses replaced with FIELD_PREP and FIELD_GET macros.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mtk-sd.c