# HG changeset patch # User Florian Pose # Date 1153314501 0 # Node ID 03aab3068f083fed999e7767ff91ab44944cd01f # Parent 558a6669da90f86394fe27e3d5f7784b00977b77 Renamed IDLE mode to ORPHANED mode. diff -r 558a6669da90 -r 03aab3068f08 master/master.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: diff -r 558a6669da90 -r 03aab3068f08 master/master.h --- 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 } diff -r 558a6669da90 -r 03aab3068f08 master/module.c --- 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);