rtc: ds1511: drop useless computation
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 27 Feb 2024 23:04:17 +0000 (00:04 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Feb 2024 21:15:46 +0000 (22:15 +0100)
commit4e7a9e2ea2f1fc145a56dff998bc8215525b0a1e
tree35c6e45a12a743ae97cbd33af689dfbf1916af22
parentf4282a4303dc7eada2543ea9b87e2b9bdec9344b
rtc: ds1511: drop useless computation

All the callers of ds1511_rtc_set_time will use the same epoch for tm_year
which is defined as the number of years minus 1900 since POSIX.1-2001.

Link: https://lore.kernel.org/r/20240227230431.1837717-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1511.c