From patchwork Tue Oct 6 22:18:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tilman Schmidt X-Patchwork-Id: 35147 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id E0B08B7BC2 for ; Wed, 7 Oct 2009 09:35:55 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933557AbZJFWTH (ORCPT ); Tue, 6 Oct 2009 18:19:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933542AbZJFWTF (ORCPT ); Tue, 6 Oct 2009 18:19:05 -0400 Received: from gimli.pxnet.com ([195.227.45.7]:41000 "EHLO mail.pxnet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933513AbZJFWTE (ORCPT ); Tue, 6 Oct 2009 18:19:04 -0400 Received: from xenon.ts.pxnet.com ([10.8.0.10]) (user=ts author=<> mech=DIGEST-MD5 bits=0) by mail.pxnet.com (8.13.8/8.13.8) with ESMTP id n96MIG6g023285; Wed, 7 Oct 2009 00:18:18 +0200 Received: by xenon.ts.pxnet.com (Postfix, from userid 1000) id F41DC11186D; Wed, 7 Oct 2009 00:18:15 +0200 (CEST) From: Tilman Schmidt Subject: [PATCH 4/4] isdn: make capidrv module parameter "debugmode" writeable To: David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org CC: Karsten Keil , Karsten Keil , isdn4linux@listserv.isdn4linux.de, i4ldeveloper@listserv.isdn4linux.de Message-ID: <20091006-patch-capi-4.tilman@imap.cc> In-Reply-To: <20091006-patch-capi-0.tilman@imap.cc> References: <20091006-patch-capi-0.tilman@imap.cc> Date: Wed, 7 Oct 2009 00:18:15 +0200 (CEST) X-Spam-Score: -2.152 () AWL,BAYES_00,RDNS_NONE X-Scanned-By: MIMEDefang 2.67 on 195.227.45.7 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- drivers/isdn/capi/capidrv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 ----------------------------------------- */