mmc: sdhci: use lower/upper_32_bits() macros for DMA addresses
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 29 Aug 2019 11:22:06 +0000 (20:22 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
commit38eee2e82c57ced726827cae2bf09bd133c7b8be
tree988f28a547301f1727b535ed2265d596ff9688b3
parent12a632e60ae3d65c3348930c4e349f7ceb0606f3
mmc: sdhci: use lower/upper_32_bits() macros for DMA addresses

Currently, the DMA addresses are casted to (u64) for the upper 32bits
to avoid "right shift count >= width of type" warning.

<linux/kernel.h> provides macros to address this, and I like the macro
names are self-documenting.

I introduced a new helper, sdhci_set_adma_addr() to avoid the code
duplication.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c