From 48a30e5a368deca86cfbfc7f6345263e9c524f31 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 1 Mar 2010 19:28:27 +0000 Subject: wcmtd24xxp, wcte12xp: Make vpmsupport module parameter read only. The vpmsupport module parameter (and a few other ones) do not do anything if they are changed after the driver is first loaded. Therefore, let's make these module parameters read only at runtime. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8188 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/base.c | 12 ++++++------ drivers/dahdi/wcte12xp/base.c | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index e678b8e..191d2ef 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -5027,7 +5027,7 @@ module_param(fxshonormode, int, 0600); module_param(battdebounce, uint, 0600); module_param(battalarm, uint, 0600); module_param(battthresh, uint, 0600); -module_param(alawoverride, int, 0600); +module_param(alawoverride, int, 0400); module_param(nativebridge, int, 0600); module_param(fxotxgain, int, 0600); module_param(fxorxgain, int, 0600); @@ -5035,16 +5035,16 @@ module_param(fxstxgain, int, 0600); module_param(fxsrxgain, int, 0600); module_param(ringdebounce, int, 0600); module_param(fwringdetect, int, 0600); -module_param(latency, int, 0600); +module_param(latency, int, 0400); module_param(neonmwi_monitor, int, 0600); module_param(neonmwi_level, int, 0600); module_param(neonmwi_envelope, int, 0600); module_param(neonmwi_offlimit, int, 0600); #ifdef VPM_SUPPORT -module_param(vpmsupport, int, 0600); -module_param(vpmnlptype, int, 0600); -module_param(vpmnlpthresh, int, 0600); -module_param(vpmnlpmaxsupp, int, 0600); +module_param(vpmsupport, int, 0400); +module_param(vpmnlptype, int, 0400); +module_param(vpmnlpthresh, int, 0400); +module_param(vpmnlpmaxsupp, int, 0400); #endif /* Module parameters backed by code in xhfc.c */ diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 27a44cf..d38d513 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -2004,10 +2004,10 @@ module_param(alarmdebounce, int, S_IRUGO | S_IWUSR); module_param(losalarmdebounce, int, S_IRUGO | S_IWUSR); module_param(aisalarmdebounce, int, S_IRUGO | S_IWUSR); module_param(yelalarmdebounce, int, S_IRUGO | S_IWUSR); -module_param(latency, int, S_IRUGO | S_IWUSR); +module_param(latency, int, S_IRUGO); #ifdef VPM_SUPPORT -module_param(vpmsupport, int, S_IRUGO | S_IWUSR); -module_param(vpmtsisupport, int, S_IRUGO | S_IWUSR); +module_param(vpmsupport, int, S_IRUGO); +module_param(vpmtsisupport, int, S_IRUGO); module_param(vpmnlptype, int, S_IRUGO); module_param(vpmnlpthresh, int, S_IRUGO); module_param(vpmnlpmaxsupp, int, S_IRUGO); -- cgit v1.2.3