rtc: m48t59: Use platform_data struct for year offset value
authorFinn Thain <fthain@linux-m68k.org>
Tue, 12 Nov 2024 22:32:15 +0000 (09:32 +1100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Nov 2024 13:31:57 +0000 (14:31 +0100)
commita06e4a93067cd8f55a74638d45146ddde76574f2
tree1b489999a3c90db45d91560239a72fc636d59735
parentfb1283bfa25e65c2d1e3c916b3d67af6609573e9
rtc: m48t59: Use platform_data struct for year offset value

Instead of hard-coded values and ifdefs, store the year offset in the
platform_data struct.

Tested-by: Daniel Palmer <daniel@0x0f.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/665c3526184a8d0c4a6373297d8e7d9a12591d8b.1731450735.git.fthain@linux-m68k.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
arch/sparc/kernel/time_32.c
arch/sparc/kernel/time_64.c
drivers/rtc/rtc-m48t59.c
include/linux/rtc/m48t59.h