[PATCH 1/3] mmc: mtk-sd: use GENMASK and FIELD macros
Macpaul Lin (林智斌)
Macpaul.Lin at mediatek.com
Fri Jan 23 07:35:11 CET 2026
On Wed, 2026-01-21 at 16:36 -0600, David Lechner wrote:
> 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 at baylibre.com>
> ---
> drivers/mmc/mtk-sd.c | 357 ++++++++++++++++++++++-------------------
> ----------
> 1 file changed, 151 insertions(+), 206 deletions(-)
>
[snip]
Reviewed-by: Macpaul Lin <macpaul.lin at mediatek.com>
Thanks
Macpaul Lin
More information about the U-Boot
mailing list