mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 10:56:02 +01: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user