]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit042d47fb3180bdd6357f1a26fc3c725d33cf02b7
treed061de9fb7217922bb26d9c008729d26b0d6eb93
parent2b4fb1dc45bbc8f9814d792ceb44343a62267865
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