]> Git Repo - u-boot.git/commit
rtc: rv8803: fix off-by-one in month counting
authorOliver Graute <[email protected]>
Tue, 26 Apr 2022 07:26:12 +0000 (09:26 +0200)
committerTom Rini <[email protected]>
Thu, 5 May 2022 19:06:02 +0000 (15:06 -0400)
commit8b42439ad19f1b3920541c357d5d7e9593adc420
tree755b37ec6c449c1c032080e62c77bff024bdfe04
parent274347030631141f3e6259b2ec4fcd11365dd9a3
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 <[email protected]>
Reviewed-by: Michael Walle <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
drivers/rtc/rv8803.c
This page took 0.033876 seconds and 4 git commands to generate.