summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Meyerriecks <rmeyerreicks@digium.com>2012-10-04 20:24:33 +0000
committerRuss Meyerriecks <rmeyerreicks@digium.com>2012-10-04 20:24:33 +0000
commit40264aaf9511c995ba8dc0bf535c6df4ceacbe9e (patch)
tree3281f809f5244d1d463a887346934318c8aa424b
parent1b703bb6f024014f56b3afb1aaade39c4c8e45f8 (diff)
wctdm24xxp: Set dahdi_span.spantype to SPANTYPE_ANALOG_MIXED.
Since r10683 "convert span->spantype to enumerated type" [1] the spantype was changed from a string provided by the board drivers to an enumerated type that is handled by the core of DAHDI. This was done to simplify the task of dahdi_genconf since there is only one place to look for the valid strings that can be exported in sysfs. This eliminates the following warning on driver load: Warning: Span %s didn't specify a spantype. Please fix driver! [1] http://svnview.digium.com/svn/dahdi?view=revision&revision=10683 Signed-off-by: Shaun Ruffell <sruffell@digium.com> Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10729 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index 0e68932..4c539b3 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -4530,6 +4530,7 @@ wctdm_init_span(struct wctdm *wc, int spanno, int chanoffset, int chancount,
} else {
s->span.ops = &wctdm24xxp_analog_span_ops;
s->span.flags = DAHDI_FLAG_RBS;
+ s->span.spantype = SPANTYPE_ANALOG_MIXED;
/* analog sigcap handled in fixup_analog_span() */
}