[svn-commits] sruffell: linux/trunk r8188 - in /linux/trunk/drivers/dahdi: wctdm24xxp/ wcte...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 1 13:28:30 CST 2010


Author: sruffell
Date: Mon Mar  1 13:28:27 2010
New Revision: 8188

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8188
Log:
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.

Modified:
    linux/trunk/drivers/dahdi/wctdm24xxp/base.c
    linux/trunk/drivers/dahdi/wcte12xp/base.c

Modified: linux/trunk/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=8188&r1=8187&r2=8188
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctdm24xxp/base.c Mon Mar  1 13:28:27 2010
@@ -5027,7 +5027,7 @@
 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(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 */

Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=8188&r1=8187&r2=8188
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Mon Mar  1 13:28:27 2010
@@ -2004,10 +2004,10 @@
 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);




More information about the svn-commits mailing list