summaryrefslogtreecommitdiff
path: root/drivers/rtc/bfin_rtc.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-20 18:37:19 (GMT)
committerSimon Glass <sjg@chromium.org>2015-05-06 02:58:20 (GMT)
commit714209832db1064886680b138f1abf9ce235b2c3 (patch)
tree6a786a91f13c0e154fb9f6a3068229ad1d2f5326 /drivers/rtc/bfin_rtc.c
parent9f9276c34cbbf67fd1b3788f0be326b47fc69123 (diff)
downloadu-boot-fsl-qoriq-714209832db1064886680b138f1abf9ce235b2c3.tar.xz
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 <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/rtc/bfin_rtc.c')
-rw-r--r--drivers/rtc/bfin_rtc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/bfin_rtc.c b/drivers/rtc/bfin_rtc.c
index 6cb1eba..a079a1d 100644
--- a/drivers/rtc/bfin_rtc.c
+++ b/drivers/rtc/bfin_rtc.c
@@ -67,8 +67,7 @@ int rtc_set(struct rtc_time *tmp)
wait_for_complete();
/* Calculate number of seconds this incoming time represents */
- remain = mktime(tmp->tm_year, tmp->tm_mon, tmp->tm_mday,
- tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
+ remain = rtc_mktime(tmp);
/* Figure out how many days since epoch */
days = remain / NUM_SECS_IN_DAY;