summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/base.c')
-rw-r--r--drivers/dahdi/wctdm24xxp/base.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c
index 5b939cd..0b7d6aa 100644
--- a/drivers/dahdi/wctdm24xxp/base.c
+++ b/drivers/dahdi/wctdm24xxp/base.c
@@ -178,7 +178,6 @@ static const struct wctdm_desc wcaex2400 = { "Wildcard AEX2400", FLAG_EXPRESS, 2
static const struct wctdm_desc wcaex800 = { "Wildcard AEX800", FLAG_EXPRESS, 8 };
static const struct wctdm_desc wcaex410 = { "Wildcard AEX410", FLAG_EXPRESS, 4 };
-static int acim2tiss[16] = { 0x0, 0x1, 0x4, 0x5, 0x7, 0x0, 0x0, 0x6, 0x0, 0x0, 0x0, 0x2, 0x0, 0x3 };
struct wctdm *ifaces[WC_MAX_IFACES];
spinlock_t ifacelock = SPIN_LOCK_UNLOCKED;
@@ -2478,7 +2477,10 @@ static int wctdm_init_proslic(struct wctdm *wc, int card, int fast, int manual,
wctdm_setreg(wc, card, 22, 0xff);
wctdm_setreg(wc, card, 73, 0x04);
if (fxshonormode) {
- fxsmode = acim2tiss[fxo_modes[_opermode].acim];
+ const int ACIM2TISS[16] = { 0x0, 0x1, 0x4, 0x5, 0x7, 0x0,
+ 0x0, 0x6, 0x0, 0x0, 0x0, 0x2,
+ 0x0, 0x3 };
+ fxsmode = ACIM2TISS[fxo_modes[_opermode].acim];
wctdm_setreg(wc, card, 10, 0x08 | fxsmode);
if (fxo_modes[_opermode].ring_osc)
wctdm_proslic_setreg_indirect(wc, card, 20, fxo_modes[_opermode].ring_osc);