Patchwork [4/4] isdn: make capidrv module parameter "debugmode" writeable

login
register
mail settings
Submitter Tilman Schmidt
Date Oct. 6, 2009, 10:18 p.m.
Message ID <20091006-patch-capi-4.tilman@imap.cc>
Download mbox | patch
Permalink /patch/35147/
State Accepted
Delegated to: David Miller
Headers show

Comments

Tilman Schmidt - Oct. 6, 2009, 10:18 p.m.
Being able to change the debugmode module parameter of capidrv on the
fly is quite useful for debugging and doesn't do any harm.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
---
 drivers/isdn/capi/capidrv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c
index 4921eae..3e6d17f 100644
--- a/drivers/isdn/capi/capidrv.c
+++ b/drivers/isdn/capi/capidrv.c
@@ -40,7 +40,7 @@  static int debugmode = 0;
 MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux");
 MODULE_AUTHOR("Carsten Paeth");
 MODULE_LICENSE("GPL");
-module_param(debugmode, uint, 0);
+module_param(debugmode, uint, S_IRUGO|S_IWUSR);
 
 /* -------- type definitions ----------------------------------------- */