[U-Boot] [PATCH v1 1/5] rtc: ds1307: remove redundant code in rtc_reset

Simon Glass sjg at chromium.org
Fri Mar 23 14:30:25 UTC 2018


On 20 March 2018 at 20:40, Chris Packham <judge.packham at gmail.com> wrote:
> As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
> command "date reset" will set the date/time to 2000-01-01 0:00:00 after
> calling rtc_reset(). This means that the ds1307 implementation of
> rtc_reset() doesn't need to call rtc_set().
>
> Signed-off-by: Chris Packham <judge.packham at gmail.com>
> ---
>
>  drivers/rtc/ds1307.c | 33 ---------------------------------
>  1 file changed, 33 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list