Merge tag 'pwm/for-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry...
[linux-2.6-block.git] / drivers / input / misc / hp_sdc_rtc.c
index 47eb8ca729fefd5fc8d44d0c06af34bab6d3ae07..abca895a61563c1311bbc60b5134a2cd69c51e02 100644 (file)
@@ -441,12 +441,10 @@ static int hp_sdc_rtc_proc_show(struct seq_file *m, void *v)
                seq_puts(m, "BBRTC\t\t: READ FAILED!\n");
        } else {
                seq_printf(m,
-                            "rtc_time\t: %02d:%02d:%02d\n"
-                            "rtc_date\t: %04d-%02d-%02d\n"
+                            "rtc_time\t: %ptRt\n"
+                            "rtc_date\t: %ptRd\n"
                             "rtc_epoch\t: %04lu\n",
-                            tm.tm_hour, tm.tm_min, tm.tm_sec,
-                            tm.tm_year + 1900, tm.tm_mon + 1, 
-                            tm.tm_mday, epoch);
+                            &tm, &tm, epoch);
        }
 
        if (hp_sdc_rtc_read_rt(&tv)) {