]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mcp795: fix time range difference between linux and RTC chip.
authorEmil Bartczak <emilbart@gmail.com>
Wed, 7 Dec 2016 23:27:39 +0000 (00:27 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 18 Dec 2016 23:59:23 +0000 (00:59 +0100)
commite6be52770cd44314df54f1688684ec5da435e8a6
tree8ce99f7233d9143117e892e4f3a9316e19667985
parent28a5286798f89780e2b7b6a4868e8bbba70c05a2
rtc: mcp795: fix time range difference between linux and RTC chip.

In linux rtc_time struct, tm_mon range is 0~11, while in RTC HW REG,
month range is 1~12. This patch adjusts difference of them.

Signed-off-by: Emil Bartczak <emilbart@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-mcp795.c