clocksource/drivers/arm_global_timer: Simplify prescaler register access
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 25 Feb 2024 15:13:36 +0000 (16:13 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Feb 2024 09:07:25 +0000 (10:07 +0100)
commit755350bcfb4ac8cbbb62bd7ee6be8271d4b2a88a
tree336d86b6558d4018094a0bd3e17d6b8d336bea27
parente651f2fae33634175fae956d896277cf916f5d09
clocksource/drivers/arm_global_timer: Simplify prescaler register access

Use GENMASK() to define the prescaler mask and make the whole driver use
the mask (together with helpers such as FIELD_{GET,PREP,FIT}) instead of
needing an additional shift and max value constant.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240225151336.2728533-4-martin.blumenstingl@googlemail.com
drivers/clocksource/arm_global_timer.c