[PATCH v1] rtc: rv8803: fix off-by-one in month counting
Heiko Schocher
hs at denx.de
Wed Apr 27 07:17:47 CEST 2022
Hello Oliver,
On 26.04.22 09:26, Oliver Graute wrote:
> 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 at kococonnector.com>
> ---
> drivers/rtc/rv8803.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
This seems like a bug to me, good catch!
Reviewed-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list