]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mmc: sdhci-cadence: use bitfield access macros for cleanup
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 13 Oct 2017 12:50:31 +0000 (21:50 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:50:32 +0000 (11:50 +0100)
commitf02cebdfe91a3818d4d71eb96a34fd90c9192c52
treef205dc74c1af02f14362e79e2bb473a54f8df2af
parent2f129d39adb37899dec2c872bea0a6d1034f4325
mmc: sdhci-cadence: use bitfield access macros for cleanup

Accessing register fields generally need mask and shift part.
Defining them separately, like SDHCI_CDNS_HRS06_TUNE_{SHIFT,MASK},
is tedious.

Register fields can be always defined by GENMASK (or, BIT if it it
a single bit).  They are nicely handled by FIELD_* macros.

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-cadence.c