mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-02 18:15:03 -04:00
[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:
committed by
Linus Torvalds
parent
f7f3682fb2
commit
c5c3e19225
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user