]> 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)
commit9340c26c31dde2c9ef2b02179d39917897ff042f
treeeee0f8209d3fb4694d78e231d2a13b27e3e429c5
parent087d1082955efb6dc592202daac7971037aa3b4c
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