mmc: meson-gx: use bitfield macros
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 25 Mar 2017 10:23:24 +0000 (11:23 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:49 +0000 (21:41 +0200)
commit1231e7eb62224235bb92a2a39cb35c89afd474af
tree6279ddc6aff7912775dddcd657955218b3cbecd9
parent8cc35289227c5cbb8811048519c1703e2137d421
mmc: meson-gx: use bitfield macros

Use GENMASK consistently for all bit masks and switch to using the
bitfield macros FIELD_GET and FIELD_PREP. This hides parts of the
complexity of dealing with bit fields.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c