]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: implement a sysfs interface for clock offset
authorJoshua Clayton <stillcompiling@gmail.com>
Fri, 5 Feb 2016 20:41:12 +0000 (12:41 -0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:16 +0000 (17:08 +0100)
commit854534d272c5ed16e50a4e6b9342ff0d28c1504e
tree5bfdec7f3b6982a2c29c89762e8a20a50e579918
parent37a5a5dbad2591305a219f2d5dae7191c51c1507
rtc: implement a sysfs interface for clock offset

clock offset may be set and read in decimal parts per billion
attribute is /sys/class/rtc/rtcN/offset
The attribute is only visible for rtcs that have set_offset implemented.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Documentation/rtc.txt
drivers/rtc/rtc-sysfs.c