From: Colin Leroy <colin.lkml@colino.net>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Switch therm_adt746x to new module_param
Date: Wed, 17 Nov 2004 19:34:16 +0100 [thread overview]
Message-ID: <20041117193416.52a86d03.colin.lkml@colino.net> (raw)
Hi Andrew,
this patch replaces MODULE_PARM to module_param for adt746x.
Signed-off-by: Colin Leroy <colin@colino.net>
--- a/drivers/macintosh/therm_adt746x.c 2004-11-17 19:26:16.908413504 +0100
+++ b/drivers/macintosh/therm_adt746x.c 2004-11-17 19:28:01.193559752 +0100
@@ -23,6 +23,8 @@
#include <linux/smp_lock.h>
#include <linux/wait.h>
#include <linux/suspend.h>
+#include <linux/kthread.h>
+#include <linux/moduleparam.h>
#include <asm/prom.h>
#include <asm/machdep.h>
@@ -30,7 +32,6 @@
#include <asm/system.h>
#include <asm/sections.h>
#include <asm/of_device.h>
-#include <linux/kthread.h>
#undef DEBUG
@@ -56,11 +57,11 @@
"Powerbook G4 Alu");
MODULE_LICENSE("GPL");
-MODULE_PARM(limit_adjust,"i");
+module_param(limit_adjust, int, 0);
MODULE_PARM_DESC(limit_adjust,"Adjust maximum temperatures (50 cpu, 70 gpu) "
"by N degrees.");
-MODULE_PARM(fan_speed,"i");
+module_param(fan_speed, int, 64);
MODULE_PARM_DESC(fan_speed,"Specify starting fan speed (0-255) "
"(default 64)");
next reply other threads:[~2004-11-17 18:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 18:34 Colin Leroy [this message]
2004-11-17 18:43 ` Randy.Dunlap
2004-11-17 19:51 ` Colin Leroy
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=20041117193416.52a86d03.colin.lkml@colino.net \
--to=colin.lkml@colino.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®