[PATCH] fix module_param_string() calls
authorBert Wesarg <wesarg@informatik.uni-halle.de>
Sat, 16 Apr 2005 22:25:43 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:43 +0000 (15:25 -0700)
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@informatik.uni-halle.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/tda9887.c
drivers/media/video/tuner-core.c

index d9c3169f9a048e205c9200d07e55b0c7f40e4a1f..debef1910c3741077b1b3e049f8163c866c92fdd 100644 (file)
@@ -478,9 +478,9 @@ static int tda9887_set_pinnacle(struct tda9887 *t, char *buf)
 /* ---------------------------------------------------------------------- */
 
 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)
 {
index eded776a23129421860bb8b61c7ca1f836d5f017..881a0539fc1704c04be38a455a87918d1315dd84 100644 (file)
@@ -162,7 +162,7 @@ static void set_type(struct i2c_client *c, unsigned int type)
 }
 
 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)
 {