mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
c3ec646dde
commit
199e87c340
4 changed files with 20 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue