dahdi-base, kernel, dahdi_echocan_*, wcb4xxp, wct4xxp, wctdm24xxp, wcte12xp: Remove name field from echocan ops

This field was redundant and was only used in places where the factory's name could be used.

Signed-off-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9523 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Kinsey Moore
2010-12-09 20:19:21 +00:00
parent 06eac5b1d2
commit fd01eef199
12 changed files with 8 additions and 23 deletions

View File

@@ -798,12 +798,9 @@ static int dahdi_proc_read(char *page, char **start, off_t off, int count, int *
chan->chan_alarms);
if (chan->ec_factory)
len += snprintf(page+len, count-len, "(ECTYPE: %s) ",
chan->ec_factory->name);
if (chan->ec_state)
len += snprintf(page+len, count-len, "(EC: %s) ",
chan->ec_state->ops->name);
len += snprintf(page+len, count-len, "(EC: %s - %s) ",
chan->ec_factory->name,
chan->ec_state ? "ACTIVE" : "INACTIVE");
len += snprintf(page+len, count-len, "\n");

View File

@@ -54,7 +54,6 @@ static const struct dahdi_echocan_factory my_factory = {
};
static const struct dahdi_echocan_ops my_ops = {
.name = "JPAH",
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,

View File

@@ -160,7 +160,6 @@ static const struct dahdi_echocan_features my_features = {
};
static const struct dahdi_echocan_ops my_ops = {
.name = "KB1",
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,

View File

@@ -192,7 +192,6 @@ static const struct dahdi_echocan_features my_features = {
};
static const struct dahdi_echocan_ops my_ops = {
.name = "MG2",
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,

View File

@@ -55,7 +55,6 @@ static const struct dahdi_echocan_factory my_factory = {
};
static const struct dahdi_echocan_ops my_ops = {
.name = "OSLEC",
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,

View File

@@ -98,7 +98,6 @@ static const struct dahdi_echocan_features my_features = {
};
static const struct dahdi_echocan_ops my_ops = {
.name = "SEC",
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,

View File

@@ -89,7 +89,6 @@ static const struct dahdi_echocan_factory my_factory = {
};
static const struct dahdi_echocan_ops my_ops = {
.name = "SEC2",
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,

View File

@@ -152,7 +152,6 @@ static const struct dahdi_echocan_features my_ec_features = {
};
static const struct dahdi_echocan_ops my_ec_ops = {
.name = "HWEC",
.echocan_free = echocan_free,
};

View File

@@ -406,12 +406,10 @@ static const struct dahdi_echocan_features vpm450m_ec_features = {
};
static const struct dahdi_echocan_ops vpm400m_ec_ops = {
.name = "VPM400M",
.echocan_free = echocan_free,
};
static const struct dahdi_echocan_ops vpm450m_ec_ops = {
.name = "VPM450M",
.echocan_free = echocan_free,
};
#endif
@@ -1308,7 +1306,8 @@ static int t4_echocan_create(struct dahdi_chan *chan,
if (ecp->param_count > 0) {
dev_warn(&wc->dev->dev, "%s echo canceller does not support "
"parameters; failing request\n", ops->name);
"parameters; failing request\n",
chan->ec_factory->name);
return -EINVAL;
}

View File

@@ -268,12 +268,10 @@ static const struct dahdi_echocan_features vpm150m_ec_features = {
};
static const struct dahdi_echocan_ops vpm100m_ec_ops = {
.name = "VPM100M",
.echocan_free = echocan_free,
};
static const struct dahdi_echocan_ops vpm150m_ec_ops = {
.name = "VPM150M",
.echocan_free = echocan_free,
};
@@ -1991,7 +1989,9 @@ static int wctdm_echocan_create(struct dahdi_chan *chan,
}
if (wc->vpm100 && (ecp->param_count > 0)) {
dev_warn(&wc->vb.pdev->dev, "%s echo canceller does not support parameters; failing request\n", ops->name);
dev_warn(&wc->vb.pdev->dev, "%s echo canceller does not "
"support parameters; failing request\n",
chan->ec_factory->name);
return -EINVAL;
}

View File

@@ -82,7 +82,6 @@ static const struct dahdi_echocan_features vpm150m_ec_features = {
};
static const struct dahdi_echocan_ops vpm150m_ec_ops = {
.name = "VPM150M",
.echocan_free = echocan_free,
};

View File

@@ -205,9 +205,6 @@ struct dahdi_echocan_features {
*/
struct dahdi_echocan_ops {
/*! The name of the echocan that created this structure. */
const char *name;
/*! \brief Free an echocan state structure.
* \param[in,out] ec Pointer to the state structure to free.
*