rtc: Fill in weekdays before setting time
Some rtcs store the weekday. Make sure it's filled in correctly before
passinf the time to the driver. This is easily done by converting it to
seconds-since-epoch and back to struct rtc_time.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent db80eaf commit e25911524369db851d3d2f1d2f048e6d85a221b6
@Sascha Hauer Sascha Hauer authored on 11 Dec 2015
Showing 1 changed file
View
drivers/rtc/class.c