From: Dmitry Torokhov <dtor_core@ameritech.net>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>,
Rusty Russell <rusty@rustcorp.com.au>,
dz@debian.org
Subject: Re: 2.6.10-rc1-mm1
Date: Wed, 27 Oct 2004 01:07:27 -0500 [thread overview]
Message-ID: <200410270107.29737.dtor_core@ameritech.net> (raw)
In-Reply-To: <200410270042.34224.dtor_core@ameritech.net>
On Wednesday 27 October 2004 12:42 am, Dmitry Torokhov wrote:
> On Tuesday 26 October 2004 11:31 pm, Andrew Morton wrote:
> > +remove-module_parm-from-allyesconfig-almost.patch
> >
> > Move lots of MODULE_PARMs to module_param()
> >
>
> Please consider applying the patch below for parkbd instead of
> Rusty's changes. I find parameter names in form of parkbd.parkbd
> and parkbd.parkbd_mode extremely ugly.
>
> The patch is against Linus's -bk.
>
And please consider the one below for i8k - it exports "power_status"
parameter through sysfs.
Since it is not part of input system I'd rather not put it in my tree...
--
Dmitry
===================================================================
ChangeSet@1.1995, 2004-10-27 01:04:47-05:00, dtor_core@ameritech.net
I8K: Switch to using module_param, allow switching 'power_status'
through sysfs.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Documentation/kernel-parameters.txt | 8 ++++++++
drivers/char/i8k.c | 16 +++++++++-------
2 files changed, 17 insertions(+), 7 deletions(-)
===================================================================
diff -Nru a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
--- a/Documentation/kernel-parameters.txt 2004-10-27 01:05:54 -05:00
+++ b/Documentation/kernel-parameters.txt 2004-10-27 01:05:54 -05:00
@@ -490,6 +490,14 @@
i810= [HW,DRM]
+ i8k.force [HW] Activate i8k driver even if SMM BIOS signature
+ does not match list of supported models.
+ i8k.power_status
+ [HW] Report power status in /proc/i8k
+ (disabled by default)
+ i8k.restricted [HW] Allow controlling fans only if SYS_ADMIN
+ capability is set.
+
ibmmcascsi= [HW,MCA,SCSI] IBM MicroChannel SCSI adapter
See Documentation/mca.txt.
diff -Nru a/drivers/char/i8k.c b/drivers/char/i8k.c
--- a/drivers/char/i8k.c 2004-10-27 01:05:54 -05:00
+++ b/drivers/char/i8k.c 2004-10-27 01:05:54 -05:00
@@ -65,18 +65,20 @@
static char bios_version [4] = "?";
static char serial_number[16] = "?";
-static int force = 0;
-static int restricted = 0;
-static int power_status = 0;
-
MODULE_AUTHOR("Massimo Dal Zotto (dz@debian.org)");
MODULE_DESCRIPTION("Driver for accessing SMM BIOS on Dell laptops");
MODULE_LICENSE("GPL");
-MODULE_PARM(force, "i");
-MODULE_PARM(restricted, "i");
-MODULE_PARM(power_status, "i");
+
+static int force;
+module_param(force, bool, 0);
MODULE_PARM_DESC(force, "Force loading without checking for supported models");
+
+static int restricted;
+module_param(restricted, bool, 0);
MODULE_PARM_DESC(restricted, "Allow fan control if SYS_ADMIN capability set");
+
+static int power_status;
+module_param(power_status, bool, 600);
MODULE_PARM_DESC(power_status, "Report power status in /proc/i8k");
static ssize_t i8k_read(struct file *, char __user *, size_t, loff_t *);
next prev parent reply other threads:[~2004-10-27 6:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 4:31 2.6.10-rc1-mm1 Andrew Morton
2004-10-27 5:42 ` 2.6.10-rc1-mm1 Dmitry Torokhov
2004-10-27 5:51 ` 2.6.10-rc1-mm1 Andrew Morton
2004-10-27 6:31 ` 2.6.10-rc1-mm1 Dmitry Torokhov
2004-10-27 6:07 ` Dmitry Torokhov [this message]
2004-10-27 6:07 ` 2.6.10-rc1-mm1 James Morris
2004-10-27 6:33 ` 2.6.10-rc1-mm1 Andrew Morton
2004-10-27 8:14 ` 2.6.10-rc1-mm1 James Morris
2004-10-27 9:20 ` 2.6.10-rc1-mm1 Andrew Morton
2004-10-27 14:52 ` 2.6.10-rc1-mm1 James Morris
2004-10-27 11:11 ` 2.6.10-rc1-mm1: reiser4 delete_from_page_cache compile error Adrian Bunk
2004-10-27 12:13 ` Hugh Dickins
2004-10-27 11:19 ` 2.6.10-rc1-mm1: ipc/mqueue.c: remove unused label Adrian Bunk
2004-10-27 11:32 ` 2.6.10-rc1-mm1 Mathieu Segaud
2004-10-27 14:18 ` 2.6.10-rc1-mm1 Adrian Bunk
2004-10-27 16:42 ` 2.6.10-rc1-mm1 (compile stats) John Cherry
2004-10-27 20:34 ` Andrew Morton
2004-10-28 0:12 ` John Cherry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410270107.29737.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=akpm@osdl.org \
--cc=dz@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).