aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/proc.c')
-rw-r--r--drivers/rtc/proc.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/rtc/proc.c b/drivers/rtc/proc.c
index 4d74e4f4ff30..73344598fc1b 100644
--- a/drivers/rtc/proc.c
+++ b/drivers/rtc/proc.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * RTC subsystem, proc interface 3 * RTC subsystem, proc interface
3 * 4 *
@@ -5,11 +6,7 @@
5 * Author: Alessandro Zummo <a.zummo@towertech.it> 6 * Author: Alessandro Zummo <a.zummo@towertech.it>
6 * 7 *
7 * based on arch/arm/common/rtctime.c 8 * based on arch/arm/common/rtctime.c
8 * 9 */
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12*/
13 10
14#include <linux/module.h> 11#include <linux/module.h>
15#include <linux/rtc.h> 12#include <linux/rtc.h>
@@ -60,17 +57,17 @@ static int rtc_proc_show(struct seq_file *seq, void *offset)
60 seq_printf(seq, "alrm_time\t: %ptRt\n", &alrm.time); 57 seq_printf(seq, "alrm_time\t: %ptRt\n", &alrm.time);
61 seq_printf(seq, "alrm_date\t: %ptRd\n", &alrm.time); 58 seq_printf(seq, "alrm_date\t: %ptRd\n", &alrm.time);
62 seq_printf(seq, "alarm_IRQ\t: %s\n", 59 seq_printf(seq, "alarm_IRQ\t: %s\n",
63 alrm.enabled ? "yes" : "no"); 60 alrm.enabled ? "yes" : "no");
64 seq_printf(seq, "alrm_pending\t: %s\n", 61 seq_printf(seq, "alrm_pending\t: %s\n",
65 alrm.pending ? "yes" : "no"); 62 alrm.pending ? "yes" : "no");
66 seq_printf(seq, "update IRQ enabled\t: %s\n", 63 seq_printf(seq, "update IRQ enabled\t: %s\n",
67 (rtc->uie_rtctimer.enabled) ? "yes" : "no"); 64 (rtc->uie_rtctimer.enabled) ? "yes" : "no");
68 seq_printf(seq, "periodic IRQ enabled\t: %s\n", 65 seq_printf(seq, "periodic IRQ enabled\t: %s\n",
69 (rtc->pie_enabled) ? "yes" : "no"); 66 (rtc->pie_enabled) ? "yes" : "no");
70 seq_printf(seq, "periodic IRQ frequency\t: %d\n", 67 seq_printf(seq, "periodic IRQ frequency\t: %d\n",
71 rtc->irq_freq); 68 rtc->irq_freq);
72 seq_printf(seq, "max user IRQ frequency\t: %d\n", 69 seq_printf(seq, "max user IRQ frequency\t: %d\n",
73 rtc->max_user_freq); 70 rtc->max_user_freq);
74 } 71 }
75 72
76 seq_printf(seq, "24hr\t\t: yes\n"); 73 seq_printf(seq, "24hr\t\t: yes\n");
@@ -85,7 +82,7 @@ void rtc_proc_add_device(struct rtc_device *rtc)
85{ 82{
86 if (is_rtc_hctosys(rtc)) 83 if (is_rtc_hctosys(rtc))
87 proc_create_single_data("driver/rtc", 0, NULL, rtc_proc_show, 84 proc_create_single_data("driver/rtc", 0, NULL, rtc_proc_show,
88 rtc); 85 rtc);
89} 86}
90 87
91void rtc_proc_del_device(struct rtc_device *rtc) 88void rtc_proc_del_device(struct rtc_device *rtc)