]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: em3027: correct month value
authorIlya Ledvich <ilya@compulab.co.il>
Fri, 1 Nov 2019 09:54:22 +0000 (11:54 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 8 Nov 2019 15:14:09 +0000 (16:14 +0100)
commitfec7540efe2f03c7e4c193eeb365bdf4c5f8d84e
tree14a1d1e33097e68a60fa7b1e9f2b278879bffd28
parentdaee433bee3ddfbc63d95aa6a908ef7d9d87c969
rtc: em3027: 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: Ilya Ledvich <ilya@compulab.co.il>
Reviewed-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Link: https://lore.kernel.org/r/20191101095422.14787-1-ilya@compulab.co.il
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-em3027.c