]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita90a7693074cccc2d0ff5cb6f6f246191d151bf4
treeeee0f8209d3fb4694d78e231d2a13b27e3e429c5
parentdca267030735c47310a2b3974c76ef9bff642cc3
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