]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: use FIELD_GET/PREP for capabilities bit masks
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 8 Apr 2020 07:21:05 +0000 (16:21 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:57 +0000 (11:20 +0200)
commit96dc6eafd827e5e94ef8ce12fde93fda8cd4d53e
treeacb9bf6de0c29b79f7252207b606157a70915cf2
parentdfa826dc2407b937e36f14a0fe88dc2cfa233adf
mmc: sdhci: use FIELD_GET/PREP for 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>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200408072105.422-2-yamada.masahiro@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-of-at91.c
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h