]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/rtc/proc.c
rtc: Switch to use %ptR
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 4 Dec 2018 21:23:12 +0000 (23:23 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 10 Dec 2018 21:39:37 +0000 (22:39 +0100)
commit5548cbf7f148b9a039b19fa4697f1b9beaba2c78
treed061de9fb7217922bb26d9c008729d26b0d6eb93
parent4d42c44727a062e233e446c6c86da1c84d762d79
rtc: Switch to use %ptR

Use %ptR instead of open coded variant to print content of
struct rtc_time in human readable format.

Note, we drop the validation option. This is only used in
a deprecated ABI and is mostly wrong as many RTCs will still be valid
after 2100.

Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/char/rtc.c
drivers/rtc/hctosys.c
drivers/rtc/interface.c
drivers/rtc/rtc-proc.c
drivers/rtc/rtc-sysfs.c