diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-20 12:37:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-05-05 20:58:20 -0600 |
commit | 199e87c340bdd69a89e22f12e1201d67767e91a8 (patch) | |
tree | f7e7935465d4937cf550f49fde8d259d179b574c /common | |
parent | c3ec646dde0428b96a67afd8c4c7b7db9dd4ca46 (diff) |
dm: rtc: Rename gregorian day function
Change this function name to something more descriptive. Also return a
failure code if it cannot calculate a correct value.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_date.c b/common/cmd_date.c index 4a653e5bcfa..dfb93495173 100644 --- a/common/cmd_date.c +++ b/common/cmd_date.c @@ -201,7 +201,7 @@ int mk_date (const char *datestr, struct rtc_time *tmp) tmp->tm_min = val; /* calculate day of week */ - GregorianDay (tmp); + rtc_calc_weekday(tmp); return (0); default: |