[svn-commits] tzafrir: branch linux/tzafrir/sysfs r5934 - /linux/team/tzafrir/sysfs/drivers...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jan 31 05:28:29 CST 2009


Author: tzafrir
Date: Sat Jan 31 05:28:29 2009
New Revision: 5934

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=5934
Log:
Add span attribute is_sync_master .

Modified:
    linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c

Modified: linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c
URL: http://svn.digium.com/svn-view/dahdi/linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c?view=diff&rev=5934&r1=5933&r2=5934
==============================================================================
--- linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c (original)
+++ linux/team/tzafrir/sysfs/drivers/dahdi/dahdi-sysfs.c Sat Jan 31 05:28:29 2009
@@ -261,6 +261,14 @@
         return sprintf (buf, "%d\n", is_digital);
 }
 
+static BUS_ATTR_READER(is_sync_master_show,dev,buf)
+{
+        struct dahdi_span      *span;
+
+        span = dev_to_span(dev);
+        return sprintf (buf, "%d\n", dahdi_is_sync_master(span));
+}
+
 static struct device_attribute span_dev_attrs[] = {
         __ATTR_RO(name),
         __ATTR_RO(desc),
@@ -269,6 +277,7 @@
 	__ATTR_RO(devicetype),
 	__ATTR_RO(location),
 	__ATTR_RO(is_digital),
+	__ATTR_RO(is_sync_master),
 #if 0
 	__ATTR(cls,		S_IWUSR, NULL, cls_store),
 	__ATTR(xbus_state,	S_IRUGO | S_IWUSR, xbus_state_show, xbus_state_store),




More information about the svn-commits mailing list