Commit 4628f2a1 authored by Gerd Knorr's avatar Gerd Knorr Committed by Linus Torvalds

[PATCH] v4l: tuner modparam

Convert leftover insmod options to new-style.
Signed-off-by: default avatarGerd Knorr <kraxel@bytesex.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dddc9e92
...@@ -36,7 +36,7 @@ I2C_CLIENT_INSMOD; ...@@ -36,7 +36,7 @@ I2C_CLIENT_INSMOD;
/* insmod options */ /* insmod options */
static unsigned int debug = 0; static unsigned int debug = 0;
MODULE_PARM(debug,"i"); module_param(debug, int, 0644);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
...@@ -377,10 +377,10 @@ static unsigned int port1 = 1; ...@@ -377,10 +377,10 @@ static unsigned int port1 = 1;
static unsigned int port2 = 1; static unsigned int port2 = 1;
static unsigned int qss = UNSET; static unsigned int qss = UNSET;
static unsigned int adjust = 0x10; static unsigned int adjust = 0x10;
MODULE_PARM(port1,"i"); module_param(port1, int, 0644);
MODULE_PARM(port2,"i"); module_param(port2, int, 0644);
MODULE_PARM(qss,"i"); module_param(qss, int, 0644);
MODULE_PARM(adjust,"i"); module_param(adjust, int, 0644);
static int tda9887_set_insmod(struct tda9887 *t, char *buf) static int tda9887_set_insmod(struct tda9887 *t, char *buf)
{ {
...@@ -460,10 +460,10 @@ static int tda9887_set_pinnacle(struct tda9887 *t, char *buf) ...@@ -460,10 +460,10 @@ static int tda9887_set_pinnacle(struct tda9887 *t, char *buf)
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
static char *pal = "-"; static char pal[] = "-";
MODULE_PARM(pal,"s"); module_param_string(pal, pal, 0644, sizeof(pal));
static char *secam = "-"; static char secam[] = "-";
MODULE_PARM(secam,"s"); module_param_string(secam, secam, 0644, sizeof(secam));
static int tda9887_fixup_std(struct tda9887 *t) static int tda9887_fixup_std(struct tda9887 *t)
{ {
......
/* /*
* $Id: tuner.c,v 1.27 2004/10/20 09:43:34 kraxel Exp $ * $Id: tuner.c,v 1.29 2004/11/07 13:17:15 kraxel Exp $
*/ */
#include <linux/module.h> #include <linux/module.h>
...@@ -1102,8 +1102,8 @@ static void set_type(struct i2c_client *c, unsigned int type, char *source) ...@@ -1102,8 +1102,8 @@ static void set_type(struct i2c_client *c, unsigned int type, char *source)
} }
} }
static char *pal = "-"; static char pal[] = "-";
MODULE_PARM(pal,"s"); module_param_string(pal, pal, 0644, sizeof(pal));
static int tuner_fixup_std(struct tuner *t) static int tuner_fixup_std(struct tuner *t)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment