]> 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)
commitdf6533b420cebc38f1d6f33ab09cdaf780b58902
treea4f98ad7c770d6317e749fed29d5acad1b0a3ff0
parent0b03579fed1bff3822d8bfcfb493480dd111c002
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