Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: digicolor: use .set_time

Use .set_time instead of the deprecated .set_mmss.

Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

+3 -3
+3 -3
drivers/rtc/rtc-digicolor.c
··· 106 106 return 0; 107 107 } 108 108 109 - static int dc_rtc_set_mmss(struct device *dev, unsigned long secs) 109 + static int dc_rtc_set_time(struct device *dev, struct rtc_time *tm) 110 110 { 111 111 struct dc_rtc *rtc = dev_get_drvdata(dev); 112 112 113 - return dc_rtc_write(rtc, secs); 113 + return dc_rtc_write(rtc, rtc_tm_to_time64(tm)); 114 114 } 115 115 116 116 static int dc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) ··· 161 161 162 162 static const struct rtc_class_ops dc_rtc_ops = { 163 163 .read_time = dc_rtc_read_time, 164 - .set_mmss = dc_rtc_set_mmss, 164 + .set_time = dc_rtc_set_time, 165 165 .read_alarm = dc_rtc_read_alarm, 166 166 .set_alarm = dc_rtc_set_alarm, 167 167 .alarm_irq_enable = dc_rtc_alarm_irq_enable,