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)
commit394c051d0fe2d94254522514d4454338f266e98d
tree14a1d1e33097e68a60fa7b1e9f2b278879bffd28
parent94303f8930ed78aea0f189b703c9d79fff9555d7
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