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: NJon Hunter <jonathanh@nvidia.com> Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
Showing
想要评论请 注册 或 登录