linux/drivers/soc/rockchip
Nicolas Frattaroli 90fbf6a21e 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>
2025-09-02 19:59:37 -04:00
..
dtpm.c soc: rockchip: dtpm: use C99 array init syntax 2023-06-11 22:38:04 +02:00
grf.c soc: rockchip: grf: switch to FIELD_PREP_WM16_CONST macro 2025-09-02 19:59:37 -04:00
io-domain.c soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
Kconfig pmdomain: rockchip: Move Kconfig option to the pmdomain subsystem 2023-10-04 23:41:18 +02:00
Makefile soc: rockchip: Mover power-domain driver to the genpd dir 2023-07-14 10:40:56 +02:00