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)
commit26eeefd5956449b03c87c49b996e012ffe3e59aa
tree8ce99f7233d9143117e892e4f3a9316e19667985
parente72765c648a172f052486cba9688ddc28f23140b
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