diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-03-01 19:28:27 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-03-01 19:28:27 +0000 |
commit | 48a30e5a368deca86cfbfc7f6345263e9c524f31 (patch) | |
tree | 90adae7e2a7268a552f2bef0ed7a885489b2e22d | |
parent | 895902ceaafad9b629e49102cf19492af97a4e07 (diff) |
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
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 12 | ||||
-rw-r--r-- | 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); |