path: root/drivers/rtc/ftrtc010.c
diff options
authorSimon Glass <>2015-04-20 12:37:19 -0600
committerSimon Glass <>2015-05-05 20:58:20 -0600
commit714209832db1064886680b138f1abf9ce235b2c3 (patch)
tree6a786a91f13c0e154fb9f6a3068229ad1d2f5326 /drivers/rtc/ftrtc010.c
parent9f9276c34cbbf67fd1b3788f0be326b47fc69123 (diff)
dm: rtc: Rename mktime() and reduce the number of parameters
Most callers unpack the structure and pass each member. It seems better to pass the whole structure instead, as with the C library. Also add an rtc_ prefix. Signed-off-by: Simon Glass <> Acked-by: Heiko Schocher <>
Diffstat (limited to 'drivers/rtc/ftrtc010.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/ftrtc010.c b/drivers/rtc/ftrtc010.c
index 3c5d955943..7d0cfb3ba8 100644
--- a/drivers/rtc/ftrtc010.c
+++ b/drivers/rtc/ftrtc010.c
@@ -104,8 +104,7 @@ int rtc_set(struct rtc_time *tmp)
tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,
tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
- new = mktime(tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_hour,
- tmp->tm_min, tmp->tm_sec);
+ new = rtc_mktime(tmp);
now = ftrtc010_time();
OpenPOWER on IntegriCloud