Added clear function for SDO kobject.
authorFlorian Pose <fp@igh-essen.com>
Mon, 06 Nov 2006 14:19:03 +0000
changeset 482 fbaaaf2a6234
parent 481 d45c3111c0af
child 483 1a507e9ab735
Added clear function for SDO kobject.
master/slave.c
--- a/master/slave.c	Mon Nov 06 14:15:21 2006 +0000
+++ b/master/slave.c	Mon Nov 06 14:19:03 2006 +0000
@@ -53,6 +53,7 @@
 /*****************************************************************************/
 
 void ec_slave_clear(struct kobject *);
+void ec_slave_sdos_clear(struct kobject *);
 ssize_t ec_show_slave_attribute(struct kobject *, struct attribute *, char *);
 ssize_t ec_store_slave_attribute(struct kobject *, struct attribute *,
                                  const char *, size_t);
@@ -83,7 +84,9 @@
     .default_attrs = def_attrs
 };
 
-static struct kobj_type ktype_ec_slave_sdos = {};
+static struct kobj_type ktype_ec_slave_sdos = {
+    .release = ec_slave_sdos_clear
+};
 
 /** \endcond */
 
@@ -278,6 +281,15 @@
 /*****************************************************************************/
 
 /**
+*/
+
+void ec_slave_sdos_clear(struct kobject *kobj /**< kobject for SDOs */)
+{
+}
+
+/*****************************************************************************/
+
+/**
    Reset slave from operation mode.
 */