mmc: sdhci: use FIELD_GET/PREP for current capabilities bit masks
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 May 2020 06:28:27 +0000 (15:28 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:14 +0000 (11:22 +0200)
commit804a65b3dfdd6d853364a835698870fb20f7a81a
treeeee0f8209d3fb4694d78e231d2a13b27e3e429c5
parent5d1f42e14b135773c0cc1d82e904c5b223783a9d
mmc: sdhci: use FIELD_GET/PREP for current capabilities bit masks

Use FIELD_GET and FIELD_PREP to get access to the register fields. Delete
the shift macros and use GENMASK() for the touched macros.

Note that, this has the side-effect of changing the constants to 64-bit on
64-bit platforms.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Link: https://lore.kernel.org/r/20200511062828.1791484-1-yamada.masahiro@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h