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)
commit5495a4159f7413f0367e8c9727ba9facd40ade7f
tree5bfdec7f3b6982a2c29c89762e8a20a50e579918
parentb3967067c273359c7462f4be9a887c3d1a515f49
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