From 40264aaf9511c995ba8dc0bf535c6df4ceacbe9e Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Thu, 4 Oct 2012 20:24:33 +0000 Subject: 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 Signed-off-by: Russ Meyerriecks git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10729 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 1 + 1 file changed, 1 insertion(+) 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() */ } -- cgit v1.2.3