]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: rockchip: grf: switch to FIELD_PREP_WM16_CONST macro
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Mon, 25 Aug 2025 08:28:23 +0000 (10:28 +0200)
committerYury Norov <yury.norov@gmail.com>
Tue, 2 Sep 2025 23:59:37 +0000 (19:59 -0400)
commit90fbf6a21ec433b329c207f5ff542a20081b7fa5
treec89bf6fd85a9cdab202a9de6002a5ae2617f735b
parent47975a878c06691dc9658f0680f850a2d45c9f83
soc: rockchip: grf: switch to FIELD_PREP_WM16_CONST macro

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

Switch the rockchip grf driver to the FIELD_PREP_WM16_CONST macro, which
brings with it more error checking while still being able to be used in
initializers.

All HIWORD_UPDATE instances and its definition are removed from the
driver, as the conversion here is obvious, and static_asserts were used
during development to make sure the ones greater than one bit in width
were really equivalent.

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/soc/rockchip/grf.c