clocksource/drivers/vf-pit: Encapsulate the macros
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Aug 2025 15:23:28 +0000 (17:23 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Sep 2025 10:29:22 +0000 (12:29 +0200)
commit1ba63930e72356315e1a664952f52ee340edbbd3
tree96c126b0d6b77b49a4a548573c7b6980fd60d19c
parentc106b698ab8d1899d62de880d73dd99edb319849
clocksource/drivers/vf-pit: Encapsulate the macros

Pass the base address to the macro, so we can use the macro with
multiple instances of the timer because we deal with different base
address. At the same time, change writes to the register to the
existing corresponding functions.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-11-daniel.lezcano@linaro.org
drivers/clocksource/timer-vf-pit.c