PM / devfreq: rockchip-dfi: Clean up DDR type register defines
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 18 Oct 2023 06:16:57 +0000 (08:16 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 19 Oct 2023 11:41:35 +0000 (20:41 +0900)
commitd3b0f6ab0e3374820b7ab7f755a28e7a65ebf2b4
treeae916051ca650cd85df35259abffb51d34a7b5e6
parent74002e668d0948d12eb2283891cfbd71be9d53c6
PM / devfreq: rockchip-dfi: Clean up DDR type register defines

Use the HIWORD_UPDATE() define known from other rockchip drivers to
make the defines look less odd to the readers who've seen other
rockchip drivers.

The HIWORD registers have their functional bits in the lower 16 bits
whereas the upper 16 bits contain a mask. Only the functional bits that
have the corresponding mask bit set are modified during a write. Although
the register writes look different, the end result should be the same,
at least there's no functional change intended with this patch.

Link: https://lore.kernel.org/all/20231018061714.3553817-10-s.hauer@pengutronix.de/
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/event/rockchip-dfi.c