[U-Boot] [PATCH 07/20] dm: rtc: Rename to_tm() to rtc_to_tm() and add error code

Simon Glass sjg at chromium.org
Mon May 4 16:20:18 CEST 2015


On 20 April 2015 at 23:16, Heiko Schocher <hs at denx.de> wrote:
> Hello Simon,
>
> Am 20.04.2015 20:37, schrieb Simon Glass:
>>
>> Rename this function so that it is clear that it is provided by the RTC.
>> Also return an error when it cannot function as expected. This is unlikely
>> to occur since it works for dates since 1752 and many RTCs do not support
>> such old dates. Still it is better to be accurate.
>>
>> Signed-off-by: Simon Glass <sjg at chromium.org>
>> ---
>>
>>   common/image.c             |  2 +-
>>   drivers/rtc/at91sam9_rtt.c |  2 +-
>>   drivers/rtc/bfin_rtc.c     |  2 +-
>>   drivers/rtc/date.c         |  8 ++++++--
>>   drivers/rtc/ds1374.c       |  2 +-
>>   drivers/rtc/ftrtc010.c     |  2 +-
>>   drivers/rtc/imxdi.c        |  2 +-
>>   drivers/rtc/mc13xxx-rtc.c  |  2 +-
>>   drivers/rtc/mcfrtc.c       |  2 +-
>>   drivers/rtc/mpc8xx.c       |  2 +-
>>   drivers/rtc/mx27rtc.c      |  2 +-
>>   drivers/rtc/mxsrtc.c       |  2 +-
>>   drivers/rtc/pl031.c        |  2 +-
>>   include/rtc.h              | 15 ++++++++++++++-
>>   net/sntp.c                 |  2 +-
>>   post/drivers/rtc.c         |  6 +++---
>>   16 files changed, 36 insertions(+), 19 deletions(-)
>
>
> Thanks!
>
> Acked-by: Heiko Schocher <hs at denx.de>

Applied to u-boot-dm.


More information about the U-Boot mailing list