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/wcb4xxp/base.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/wcb4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wcb4xxp/base.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c index 69029a0..62e1f64 100644 --- a/drivers/dahdi/wcb4xxp/base.c +++ b/drivers/dahdi/wcb4xxp/base.c @@ -2505,7 +2505,9 @@ static void init_spans(struct b4xxp *b4) bspan = &b4->spans[i]; bspan->parent = b4; - bspan->span.spantype = (bspan->te_mode) ? "TE" : "NT"; + bspan->span.spantype = (bspan->te_mode) + ? SPANTYPE_DIGITAL_BRI_TE + : SPANTYPE_DIGITAL_BRI_NT; bspan->span.offset = i; bspan->span.channels = WCB4XXP_CHANNELS_PER_SPAN; bspan->span.flags = 0; |