Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: hp_sdc_rtc - Switch to use %ptR

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

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Andy Shevchenko and committed by
Alexandre Belloni
804cfcb9 d54fb486

+3 -5
+3 -5
drivers/input/misc/hp_sdc_rtc.c
··· 441 441 seq_puts(m, "BBRTC\t\t: READ FAILED!\n"); 442 442 } else { 443 443 seq_printf(m, 444 - "rtc_time\t: %02d:%02d:%02d\n" 445 - "rtc_date\t: %04d-%02d-%02d\n" 444 + "rtc_time\t: %ptRt\n" 445 + "rtc_date\t: %ptRd\n" 446 446 "rtc_epoch\t: %04lu\n", 447 - tm.tm_hour, tm.tm_min, tm.tm_sec, 448 - tm.tm_year + 1900, tm.tm_mon + 1, 449 - tm.tm_mday, epoch); 447 + &tm, &tm, epoch); 450 448 } 451 449 452 450 if (hp_sdc_rtc_read_rt(&tv)) {