All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH 1/2] rtc: use probe() to initialize emulated RTC
Date: Tue, 3 Nov 2020 08:12:03 -0700	[thread overview]
Message-ID: <CAPnjgZ07_ChEzRoODs+egbVMki1dseCFS1bPmB=xLHFiqxjBtg@mail.gmail.com> (raw)
In-Reply-To: <20201030031936.21957-2-xypron.glpk@gmx.de>

On Thu, 29 Oct 2020 at 21:20, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Currently the emulated RTC is initialized in the emul_rtc_get() get
> function. This does not match the design of the driver model.
>
> Move the initialization of the emulated RTC to the probe() function.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  drivers/rtc/emul_rtc.c | 18 ++++++++++++------
>  1 file changed, 12 insertions(+), 6 deletions(-)
>

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

  reply	other threads:[~2020-11-03 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-30  3:19 [PATCH 0/2] rtc: initialize emulated RTC from environment variable Heinrich Schuchardt
2020-10-30  3:19 ` [PATCH 1/2] rtc: use probe() to initialize emulated RTC Heinrich Schuchardt
2020-11-03 15:12   ` Simon Glass [this message]
2020-10-30  3:19 ` [PATCH 2/2] rtc: initialize emulated RTC from environment variable Heinrich Schuchardt
2020-11-03 15:12   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPnjgZ07_ChEzRoODs+egbVMki1dseCFS1bPmB=xLHFiqxjBtg@mail.gmail.com' \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.