diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-02-03 21:37:56 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-02-03 21:37:56 +0000 |
commit | 208e0ba531dd47d944b4c425a021489564a749d4 (patch) | |
tree | 9cc064c9b2bdd20573ed4c39cdeec41a3a17f920 | |
parent | 4033bb44e8006db8761d68e41a31b5cc824ec9da (diff) |
wctdm24xxp: Localize the reference to acim2tiss.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7981 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 6 |
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); |