]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: hym8563: fix invalid year calculation
authorAlexander Kochetkov <al.kochet@gmail.com>
Sun, 6 Mar 2016 09:43:57 +0000 (12:43 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:38 +0000 (17:08 +0100)
commit0ee8186224d8787f33fcf5c5bb2f8ab89393eebb
tree2061bb01a8eef2b3f5b9c9adb4b74df8b1c1c45d
parent9ed4c36101d5a9c33588b0bebef490cd1e613faa
rtc: hym8563: fix invalid year calculation

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

Due to the bug year 2016 became 2010.

Fixes: 889565ad0e16 ("rtc: add hym8563 rtc-driver")
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-hym8563.c