]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitd5861262210067fc01b2fb4f7af2fd85a3453f15
tree2061bb01a8eef2b3f5b9c9adb4b74df8b1c1c45d
parentfc1dcb0b39dbb10d3290f2fcd6e154670f699166
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: dcaf03849352 ("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