All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwclock: try the 'new' rtc class first
@ 2017-03-23 20:36 J William Piggott
  2017-03-24 11:10 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: J William Piggott @ 2017-03-23 20:36 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux


* sys-utils/hwclock-rtc.c: try to open the 'new' rtc class driver first.
* sys-utils/hwclock.8.in: document this.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
---
The following changes since commit 24d746f705c488b28693b1c18c730de3c7202b3d:

  build-sys: add missing header file (2017-03-23 15:59:58 +0100)

are available in the git repository at:

  git@github.com:jwpi/util-linux.git hwclock-date7-1

for you to fetch changes up to 1811900a91be856e794005511eac7859adb8e383:

  hwclock-rtc.c: try the 'new' rtc class first (2017-03-23 16:14:01 -0400)

----------------------------------------------------------------
J William Piggott (1):
      hwclock-rtc.c: try the 'new' rtc class first

 sys-utils/hwclock-rtc.c | 2 +-
 sys-utils/hwclock.8.in  | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c
index 411ec43..077db73 100644
--- a/sys-utils/hwclock-rtc.c
+++ b/sys-utils/hwclock-rtc.c
@@ -110,8 +110,8 @@ static int open_rtc(const struct hwclock_control *ctl)
 		"/dev/efirtc",
 		"/dev/misc/efirtc",
 #endif
-		"/dev/rtc",
 		"/dev/rtc0",
+		"/dev/rtc",
 		"/dev/misc/rtc"
 	};
 	size_t i;
diff --git a/sys-utils/hwclock.8.in b/sys-utils/hwclock.8.in
index 78e53ae..45ff73f 100644
--- a/sys-utils/hwclock.8.in
+++ b/sys-utils/hwclock.8.in
@@ -337,10 +337,10 @@ default rtc device file name.  Otherwise it will
 use the first one found in this order:
 .in +4
 .br
-.I /dev/rtc
-.br
 .I /dev/rtc0
 .br
+.I /dev/rtc
+.br
 .I /dev/misc/rtc
 .br
 .in
@@ -1010,10 +1010,10 @@ Device files
 .B hwclock
 may try for Hardware Clock access:
 .br
-.I /dev/rtc
-.br
 .I /dev/rtc0
 .br
+.I /dev/rtc
+.br
 .I /dev/misc/rtc
 .br
 .I /dev/efirtc

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwclock: try the 'new' rtc class first
  2017-03-23 20:36 [PATCH] hwclock: try the 'new' rtc class first J William Piggott
@ 2017-03-24 11:10 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2017-03-24 11:10 UTC (permalink / raw)
  To: J William Piggott; +Cc: util-linux

On Thu, Mar 23, 2017 at 04:36:16PM -0400, J William Piggott wrote:
>  sys-utils/hwclock-rtc.c | 2 +-
>  sys-utils/hwclock.8.in  | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)

Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-24 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23 20:36 [PATCH] hwclock: try the 'new' rtc class first J William Piggott
2017-03-24 11:10 ` Karel Zak

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.