aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/time_32.c
diff options
context:
space:
mode:
authorFinn Thain <[email protected]>2024-11-13 09:32:15 +1100
committerAlexandre Belloni <[email protected]>2024-11-18 14:31:57 +0100
commita06e4a93067cd8f55a74638d45146ddde76574f2 (patch)
tree1b489999a3c90db45d91560239a72fc636d59735 /arch/sparc/kernel/time_32.c
parentfb1283bfa25e65c2d1e3c916b3d67af6609573e9 (diff)
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 <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Finn Thain <[email protected]> Tested-by: Andreas Larsson <[email protected]> Acked-by: Andreas Larsson <[email protected]> Link: https://lore.kernel.org/r/665c3526184a8d0c4a6373297d8e7d9a12591d8b.1731450735.git.fthain@linux-m68k.org Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'arch/sparc/kernel/time_32.c')
-rw-r--r--arch/sparc/kernel/time_32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c
index 08bbdc458596..578fd0d49f30 100644
--- a/arch/sparc/kernel/time_32.c
+++ b/arch/sparc/kernel/time_32.c
@@ -255,6 +255,7 @@ static void mostek_write_byte(struct device *dev, u32 ofs, u8 val)
static struct m48t59_plat_data m48t59_data = {
.read_byte = mostek_read_byte,
.write_byte = mostek_write_byte,
+ .yy_offset = 68,
};
/* resource is set at runtime */