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)
commitfb4ac3c14b07a6fd33a399845273661172ed282d
tree821d9cfcb480bd760bf143ed67a4ad512433746c
parent62c8c20af92ea312ecb22cec4e83082e5843076b
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