]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: dw_mmc-rockchip: switch to FIELD_PREP_WM16 macro
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Mon, 25 Aug 2025 08:28:22 +0000 (10:28 +0200)
committerYury Norov <yury.norov@gmail.com>
Tue, 2 Sep 2025 23:59:37 +0000 (19:59 -0400)
commit47975a878c06691dc9658f0680f850a2d45c9f83
tree1299030a3ba01dfbe3021e29595e42cce0d667d7
parent21368fcbb124d51b5d8bd8fa0a286a23c34a0888
mmc: dw_mmc-rockchip: switch to FIELD_PREP_WM16 macro

The era of hand-rolled HIWORD_UPDATE macros is over, at least for those
drivers that use constant masks.

Switch to the new FIELD_PREP_WM16 macro in hw_bitfield.h, which has
error checking. Instead of redefining the driver's HIWORD_UPDATE macro
in this case, replace the two only instances of it with the new macro,
as I could test that they result in an equivalent value.

Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
drivers/mmc/host/dw_mmc-rockchip.c