diff options
Diffstat (limited to 'drivers/rtc/rtc-sysfs.c')
| -rw-r--r-- | drivers/rtc/rtc-sysfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sysfs.c b/drivers/rtc/rtc-sysfs.c index 380083ca572f..b70e2bb63645 100644 --- a/drivers/rtc/rtc-sysfs.c +++ b/drivers/rtc/rtc-sysfs.c | |||
| @@ -102,6 +102,12 @@ rtc_sysfs_set_max_user_freq(struct device *dev, struct device_attribute *attr, | |||
| 102 | return n; | 102 | return n; |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | /** | ||
| 106 | * rtc_sysfs_show_hctosys - indicate if the given RTC set the system time | ||
| 107 | * | ||
| 108 | * Returns 1 if the system clock was set by this RTC at the last | ||
| 109 | * boot or resume event. | ||
| 110 | */ | ||
| 105 | static ssize_t | 111 | static ssize_t |
| 106 | rtc_sysfs_show_hctosys(struct device *dev, struct device_attribute *attr, | 112 | rtc_sysfs_show_hctosys(struct device *dev, struct device_attribute *attr, |
| 107 | char *buf) | 113 | char *buf) |
