[svn-commits] sruffell: linux/trunk r9537 - /linux/trunk/drivers/dahdi/wctc4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 15 17:53:25 UTC 2010


Author: sruffell
Date: Wed Dec 15 11:53:21 2010
New Revision: 9537

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9537
Log:
wctc4xxp: Make the "mode" module parameter read-only in sysfs.

The mode module parameter is only acted on during module initialization.
We shouldn't allow anyone to change it after the driver is already
loaded.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>
Acked-By: Russ Meyerriecks <rmeyerriecks at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wctc4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wctc4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=9537&r1=9536&r2=9537
==============================================================================
--- linux/trunk/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctc4xxp/base.c Wed Dec 15 11:53:21 2010
@@ -3766,7 +3766,7 @@
 }
 
 module_param(debug, int, S_IRUGO | S_IWUSR);
-module_param(mode, charp, S_IRUGO | S_IWUSR);
+module_param(mode, charp, S_IRUGO);
 MODULE_PARM_DESC(mode, "'g729', 'g723.1', or 'any'.  Default 'any'.");
 MODULE_DESCRIPTION("Wildcard TC400P+TC400M Driver");
 MODULE_AUTHOR("Digium Incorporated <support at digium.com>");




More information about the svn-commits mailing list