]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: as3722: correct month value
authorBibek Basu <bbasu@nvidia.com>
Fri, 14 Aug 2015 18:44:02 +0000 (20:44 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 17:37:18 +0000 (19:37 +0200)
commitbaed9a844b0c03f9a29bdcd31b9646fb4cd4b78a
tree51b4e83cdff607f85e4d3f89b515809de9fa9a03
parent2ba617c0cddf5d3096f581e1d0b03ff12f84668a
rtc: as3722: correct month value

The RTC month value is 1-indexed, but the kernel assumes it is 0-indexed.
This may result in the RTC not rolling over correctly.

Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-as3722.c