]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: s3c: Set year, month, day value for setting alarm
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Sun, 1 Nov 2015 11:49:04 +0000 (20:49 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 8 Nov 2015 13:12:31 +0000 (14:12 +0100)
commit0707d2f7eb4b3df34a7dd3dc5f7229a9c09880cc
tree821d9cfcb480bd760bf143ed67a4ad512433746c
parent34150a0daa8b94b2702739e77b06eaace2f00853
rtc: s3c: Set year, month, day value for setting alarm

This patch sets year, month, day value for set_alarm function.
The current driver omits to set the values.

This fixes setting wake alarm for dates different than current day.
Without the patch the alarm scheduled for tomorrow would fire today on
chosen time.

Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.kim@samsung.com>
Signed-off-by: KyungMin Park <kyungmin.park@samsung.com>
[k.kozlowski: Rebase and test the patch, update commit message]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-s3c.c