Renamed IDLE mode to ORPHANED mode.
--- 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);