]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: fix alarm read and set offset
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 12 Jul 2018 10:22:44 +0000 (12:22 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 13 Jul 2018 08:37:54 +0000 (10:37 +0200)
commitde5e4c8363b7687d8c05eede469ab8f8a4bd59d1
treea4f98ad7c770d6317e749fed29d5acad1b0a3ff0
parent8a4d5dc8eb496de24bda9a0221519d53e2d0fc5b
rtc: fix alarm read and set offset

The offset needs to be added after reading the alarm value.

It also needs to be subtracted after the now < alarm test.

Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/interface.c