clocksource/drivers/sun5i: Remove duplication of code and data
authorMans Rullgard <mans@mansr.com>
Fri, 30 Jun 2023 20:01:26 +0000 (21:01 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 18 Aug 2023 10:15:06 +0000 (12:15 +0200)
commit7ded803873162f0edfa8570b28605dfcb67fb486
treefb122a11d6ec5f4113981a305429d001428fef7a
parentbd0f3aac47e8f618ceae0120d7b989378a7c45f0
clocksource/drivers/sun5i: Remove duplication of code and data

Move the clocksource and clock_event_device structs into the main
struct sun5i_timer, and update the code for the new layout.  This
removes a lot of duplication of both code and data.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230630201800.16501-2-mans@mansr.com
drivers/clocksource/timer-sun5i.c