Renamed IDLE mode to ORPHANED mode.
authorFlorian Pose <fp@igh-essen.com>
Wed, 19 Jul 2006 13:08:21 +0000
changeset 305 03aab3068f08
parent 304 558a6669da90
child 306 45886de3db87
Renamed IDLE mode to ORPHANED mode.
master/master.c
master/master.h
master/module.c
--- a/master/master.c	Wed Jul 19 12:57:41 2006 +0000
+++ b/master/master.c	Wed Jul 19 13:08:21 2006 +0000
@@ -245,7 +245,7 @@
     master->stats.unmatched = 0;
     master->stats.t_last = 0;
 
-    master->mode = EC_MASTER_MODE_IDLE;
+    master->mode = EC_MASTER_MODE_ORPHANED;
 
     master->request_cb = NULL;
     master->release_cb = NULL;
@@ -707,7 +707,7 @@
     ec_master_eoe_stop(master);
 
     EC_INFO("Stopping Free-Run mode.\n");
-    master->mode = EC_MASTER_MODE_IDLE;
+    master->mode = EC_MASTER_MODE_ORPHANED;
 
     if (!cancel_delayed_work(&master->freerun_work)) {
         flush_workqueue(master->workqueue);
@@ -843,8 +843,8 @@
     }
     else if (attr == &attr_mode) {
         switch (master->mode) {
-            case EC_MASTER_MODE_IDLE:
-                return sprintf(buffer, "IDLE\n");
+            case EC_MASTER_MODE_ORPHANED:
+                return sprintf(buffer, "ORPHANED\n");
             case EC_MASTER_MODE_FREERUN:
                 return sprintf(buffer, "FREERUN\n");
             case EC_MASTER_MODE_RUNNING:
--- a/master/master.h	Wed Jul 19 12:57:41 2006 +0000
+++ b/master/master.h	Wed Jul 19 13:08:21 2006 +0000
@@ -57,7 +57,7 @@
 
 typedef enum
 {
-    EC_MASTER_MODE_IDLE,
+    EC_MASTER_MODE_ORPHANED,
     EC_MASTER_MODE_FREERUN,
     EC_MASTER_MODE_RUNNING
 }
--- a/master/module.c	Wed Jul 19 12:57:41 2006 +0000
+++ b/master/module.c	Wed Jul 19 13:08:21 2006 +0000
@@ -466,8 +466,6 @@
     }
 
     ec_master_reset(master);
-
-    master->mode = EC_MASTER_MODE_IDLE;
     ec_master_freerun_start(master);
 
     module_put(master->device->module);