Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-20 03:17:49 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-20 03:17:49 -0800
commit3d6fd938ecaf4d7338de3e55ce6e23676d09b705 (patch)
tree742bb819a52884f91cc6881367f4b96727afb511
parent160c2d70e7f146cea087ae3cf9382d171e6c8eb6 (diff)
[PATCH] new module args for ir-kbd-*.c
From: Gerd Knorr <kraxel@bytesex.org> Use module_param() rather than the deprecated MODULE_PARM() in this driver.
-rw-r--r--drivers/media/video/ir-kbd-gpio.c5
-rw-r--r--drivers/media/video/ir-kbd-i2c.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/ir-kbd-gpio.c b/drivers/media/video/ir-kbd-gpio.c
index 2341a7a2a848..700345d52ddc 100644
--- a/drivers/media/video/ir-kbd-gpio.c
+++ b/drivers/media/video/ir-kbd-gpio.c
@@ -18,6 +18,7 @@
*/
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/delay.h>
@@ -170,8 +171,8 @@ struct IR {
struct timer_list timer;
};
-static int debug = 0; /* debug level (0,1,2) */
-MODULE_PARM(debug,"i");
+static int debug;
+module_param(debug, int, 0644); /* debug level (0,1,2) */
#define DEVNAME "ir-kbd-gpio"
#define dprintk(fmt, arg...) if (debug) \
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c
index f5781ecd25c4..6d40f3a96a3a 100644
--- a/drivers/media/video/ir-kbd-i2c.c
+++ b/drivers/media/video/ir-kbd-i2c.c
@@ -25,6 +25,7 @@
*/
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
@@ -55,8 +56,8 @@ struct IR {
/* ----------------------------------------------------------------------- */
/* insmod parameters */
-static int debug = 0; /* debug level (0,1,2) */
-MODULE_PARM(debug,"i");
+static int debug;
+module_param(debug, int, 0644); /* debug level (0,1,2) */
#define DEVNAME "ir-kbd-i2c"
#define dprintk(level, fmt, arg...) if (debug >= level) \