[PATCH v1] clocksource/drivers/arm_global_timer: Simplify prescaler register access
Daniel Lezcano
daniel.lezcano at linaro.org
Thu Feb 22 02:02:21 PST 2024
Hi Martin,
thank you for providing these cleanups.
One question below:
On 21/02/2024 22:43, Martin Blumenstingl wrote:
[ ... ]
> /* prescaler within legal range? */
> - if (psv < 0 || psv > GT_CONTROL_PRESCALER_MAX)
> + if (psv < 0 || psv > FIELD_GET(GT_CONTROL_PRESCALER_MASK, ~0))
FIELD_MAX() ?
[ ... ]
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
More information about the linux-amlogic
mailing list