[patch 127/198] fix module_param_string() calls

From: akpm
Date: Tue Apr 12 2005 - 13:57:48 EST



From: Bert Wesarg <wesarg@xxxxxxxxxxxxxxxxxxxxxxx>

This patch fix 3 calls to module_param_string() in
driver/media/video/tuner-core.c and drivers/media/video/tda9887.c. In all
three places, the len and the perm parameter was switched.

Signed-off-by: Bert Wesarg <wesarg@xxxxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

25-akpm/drivers/media/video/tda9887.c | 4 ++--
25-akpm/drivers/media/video/tuner-core.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/media/video/tda9887.c~fix-module_param_string-calls drivers/media/video/tda9887.c
--- 25/drivers/media/video/tda9887.c~fix-module_param_string-calls 2005-04-12 03:21:34.030963408 -0700
+++ 25-akpm/drivers/media/video/tda9887.c 2005-04-12 03:21:34.035962648 -0700
@@ -478,9 +478,9 @@ static int tda9887_set_pinnacle(struct t
/* ---------------------------------------------------------------------- */

static char pal[] = "-";
-module_param_string(pal, pal, 0644, sizeof(pal));
+module_param_string(pal, pal, sizeof(pal), 0644);
static char secam[] = "-";
-module_param_string(secam, secam, 0644, sizeof(secam));
+module_param_string(secam, secam, sizeof(secam), 0644);

static int tda9887_fixup_std(struct tda9887 *t)
{
diff -puN drivers/media/video/tuner-core.c~fix-module_param_string-calls drivers/media/video/tuner-core.c
--- 25/drivers/media/video/tuner-core.c~fix-module_param_string-calls 2005-04-12 03:21:34.031963256 -0700
+++ 25-akpm/drivers/media/video/tuner-core.c 2005-04-12 03:21:34.036962496 -0700
@@ -162,7 +162,7 @@ static void set_type(struct i2c_client *
}

static char pal[] = "-";
-module_param_string(pal, pal, 0644, sizeof(pal));
+module_param_string(pal, pal, sizeof(pal), 0644);

static int tuner_fixup_std(struct tuner *t)
{
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/