]> git.baikalelectronics.ru Git - uboot.git/commit
rtc: rv8803: fix off-by-one in month counting
authorOliver Graute <oliver.graute@kococonnector.com>
Tue, 26 Apr 2022 07:26:12 +0000 (09:26 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 19:06:02 +0000 (15:06 -0400)
commitd7f419acd745314bb155a21ddec1fdeb93451a2c
tree755b37ec6c449c1c032080e62c77bff024bdfe04
parent8ead9f17865733579cc2ea3f035ce51df4360e1a
rtc: rv8803: fix off-by-one in month counting

tm_mon has a range from 0..11, but the RTC expects 1..12. So we adapt
the month accordingly. This was determined when comparing the driver
with the corresponding linux kernel driver.

Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/rtc/rv8803.c