From 9002cf71ae456b33b44fef8dacfc1a886430f583 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 1 Mar 2010 23:19:13 +0000 Subject: wctdm24xxp: Mark the robust module parameter as DEBUG only. In testing this option didn't appear to function properly. Just mark it debug only so it's not part of the "official" interface in case there are some users of it out there that I'm not aware of. DAHDI-267. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8203 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index ff330aa..a640f94 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -221,7 +221,9 @@ static unsigned int battdebounce; static unsigned int battalarm; static unsigned int battthresh; static int debug = 0; +#ifdef DEBUG static int robust = 0; +#endif static int lowpower = 0; static int boostringer = 0; static int fastringer = 0; @@ -1787,8 +1789,10 @@ static void wctdm_fxs_off_hook(struct wctdm *wc, const int card) break; } dahdi_hooksig(wc->aspan->span.chans[card], DAHDI_RXSIG_OFFHOOK); +#ifdef DEBUG if (robust) wctdm_init_proslic(wc, card, 1, 0, 1); +#endif fxs->oldrxhook = 1; } @@ -5021,7 +5025,9 @@ module_param(debug, int, 0600); module_param(fxovoltage, int, 0600); module_param(loopcurrent, int, 0600); module_param(reversepolarity, int, 0600); +#ifdef DEBUG module_param(robust, int, 0600); +#endif module_param(opermode, charp, 0600); module_param(lowpower, int, 0600); module_param(boostringer, int, 0600); -- cgit v1.2.3