diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-05-23 12:20:23 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-05-23 12:20:23 +0000 |
commit | fa1d3ba9465064f7a1551fe7369525d8b355861d (patch) | |
tree | e69ab4124842248fc84b8534dd05ebe90a091cfb /drivers/dahdi/wcte11xp.c | |
parent | 45a4b3459991f23fc17240886d1435d67ff2e89c (diff) |
convert span->spantype to enumerated type
* This is a minimal convertion -- everything compiles and looks OK.
* We print a warning for spans registering without a spantype.
* Low-level drivers may later want (but not required)
to fold their internal representations to this canonical
representation -- it will save code and make it more readable.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10683 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte11xp.c')
-rw-r--r-- | drivers/dahdi/wcte11xp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/wcte11xp.c b/drivers/dahdi/wcte11xp.c index 05a9f95..54ad2e8 100644 --- a/drivers/dahdi/wcte11xp.c +++ b/drivers/dahdi/wcte11xp.c @@ -1000,12 +1000,12 @@ static int t1xxp_software_init(struct t1 *wc) else wc->span.channels = 31; wc->span.deflaw = DAHDI_LAW_ALAW; - wc->span.spantype = "E1"; + wc->span.spantype = SPANTYPE_DIGITAL_E1; wc->span.linecompat = DAHDI_CONFIG_HDB3 | DAHDI_CONFIG_CCS | DAHDI_CONFIG_CRC4; } else { wc->span.channels = 24; wc->span.deflaw = DAHDI_LAW_MULAW; - wc->span.spantype = "T1"; + wc->span.spantype = SPANTYPE_DIGITAL_T1; wc->span.linecompat = DAHDI_CONFIG_AMI | DAHDI_CONFIG_B8ZS | DAHDI_CONFIG_D4 | DAHDI_CONFIG_ESF; } wc->span.chans = wc->chans; |