[PATCH] RTC subsystem: sysfs interface

This patch adds the sysfs interface to the RTC subsystem.

Each RTC client will have his own entry under /sys/classs/rtc/rtcN .

Within this entry some attributes are exported by the subsystem, like date and
time.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Alessandro Zummo
2006-03-27 01:16:39 -08:00
committed by Linus Torvalds
parent f7f3682fb2
commit c5c3e19225
3 changed files with 138 additions and 0 deletions

View File

@@ -40,6 +40,17 @@ config RTC_HCTOSYS_DEVICE
comment "RTC interfaces"
depends on RTC_CLASS
config RTC_INTF_SYSFS
tristate "sysfs"
depends on RTC_CLASS && SYSFS
default RTC_CLASS
help
Say yes here if you want to use your RTC using the sysfs
interface, /sys/class/rtc/rtcX .
This driver can also be built as a module. If so, the module
will be called rtc-sysfs.
comment "RTC drivers"
depends on RTC_CLASS