Hi Finn, On Tue, Oct 8, 2024 at 12:43 AM Finn Thain <fthain@xxxxxxxxxxxxxx> wrote: > Instead of hard-coded values and ifdefs, store the year offset in the > platform_data struct. > > Tested-by: Daniel Palmer <daniel@xxxxxxxx> > Signed-off-by: Finn Thain <fthain@xxxxxxxxxxxxxx> Thanks for your patch! > --- a/include/linux/rtc/m48t59.h > +++ b/include/linux/rtc/m48t59.h > @@ -56,6 +56,9 @@ struct m48t59_plat_data { > void __iomem *ioaddr; > /* offset to RTC registers, automatically set according to the type */ > unsigned int offset; > + > + /* YY digits (in RTC) are offset, i.e. year is 1900 + yy_offset + YY */ > + time64_t yy_offset; time64_t sounds like overkill to me... > }; > > #endif /* _LINUX_RTC_M48T59_H_ */ The rest LGTM. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds