rtc: hym8563: fix invalid year calculation

[ Upstream commit d586126221 ]

Year field must be in BCD format, according to
hym8563 datasheet.

Due to the bug year 2016 became 2010.

Fixes: dcaf038493 ("rtc: add hym8563 rtc-driver")
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Alexander Kochetkov 2016-03-06 12:43:57 +03:00 • committed by Sasha Levin
commit 3643b565e2