aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtc/ds1306.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-20 12:37:17 -0600
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:20 -0600
commit199e87c340bdd69a89e22f12e1201d67767e91a8 (patch)
treef7e7935465d4937cf550f49fde8d259d179b574c /drivers/rtc/ds1306.c
parentc3ec646dde0428b96a67afd8c4c7b7db9dd4ca46 (diff)
downloadu-boot-199e87c340bdd69a89e22f12e1201d67767e91a8.zip
u-boot-199e87c340bdd69a89e22f12e1201d67767e91a8.tar.gz
u-boot-199e87c340bdd69a89e22f12e1201d67767e91a8.tar.bz2
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 'drivers/rtc/ds1306.c')
-rw-r--r--drivers/rtc/ds1306.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/ds1306.c b/drivers/rtc/ds1306.c
index 1ec1837..3fe6721 100644
--- a/drivers/rtc/ds1306.c
+++ b/drivers/rtc/ds1306.c
@@ -110,7 +110,7 @@ int rtc_get (struct rtc_time *tmp)
immap->im_cpm.cp_pbdat &= ~PB_SPI_CE; /* Disable DS1306 Chip */
udelay (10);
- GregorianDay (tmp); /* Determine the day of week */
+ rtc_calc_weekday(tmp); /* Determine the day of week */
debug ("Get DATE: %4d-%02d-%02d (wday=%d) TIME: %2d:%02d:%02d\n",
tmp->tm_year, tmp->tm_mon, tmp->tm_mday, tmp->tm_wday,