All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Dittmer <jdittmer@ppp0.net>
To: Linux kernel <linux-kernel@vger.kernel.org>
Cc: kraxel@bytesex.org
Subject: [PATCH] tvaudio and tvmixer module_param conversion
Date: Sun, 14 Nov 2004 00:23:31 +0100	[thread overview]
Message-ID: <41969773.70006@ppp0.net> (raw)

module_param conversion for tvaudio and tvmixer

Signed-off-by: Jan Dittmer <jdittmer@ppp0.net>


diff -Nru a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
--- a/drivers/media/video/tvaudio.c	2004-11-14 00:20:58 +01:00
+++ b/drivers/media/video/tvaudio.c	2004-11-14 00:20:58 +01:00
@@ -37,8 +37,8 @@
 /* ---------------------------------------------------------------------- */
 /* insmod args                                                            */

-MODULE_PARM(debug,"i");
 static int debug = 0;	/* insmod parameter */
+module_param(debug, int, S_IRUGO | S_IWUSR);

 MODULE_DESCRIPTION("device driver for various i2c TV sound decoder / audiomux chips");
 MODULE_AUTHOR("Eric Sandeen, Steve VanDeBogart, Greg Alexander, Gerd Knorr");
@@ -764,9 +764,9 @@
 static unsigned int tda9874a_SIF   = UNSET;
 static unsigned int tda9874a_AMSEL = UNSET;
 static unsigned int tda9874a_STD   = UNSET;
-MODULE_PARM(tda9874a_SIF,"i");
-MODULE_PARM(tda9874a_AMSEL,"i");
-MODULE_PARM(tda9874a_STD,"i");
+module_param(tda9874a_SIF, int, 0);
+module_param(tda9874a_AMSEL, int, 0);
+module_param(tda9874a_STD, int, 0);

 /*
  * initialization table for tda9874 decoder:
@@ -1218,16 +1218,16 @@
 int pic16c54 = 1;
 int ta8874z  = 0;  // address clash with tda9840

-MODULE_PARM(tda8425,"i");
-MODULE_PARM(tda9840,"i");
-MODULE_PARM(tda9850,"i");
-MODULE_PARM(tda9855,"i");
-MODULE_PARM(tda9873,"i");
-MODULE_PARM(tda9874a,"i");
-MODULE_PARM(tea6300,"i");
-MODULE_PARM(tea6420,"i");
-MODULE_PARM(pic16c54,"i");
-MODULE_PARM(ta8874z,"i");
+module_param(tda8425, int, 0);
+module_param(tda9840, int, 0);
+module_param(tda9850, int, 0);
+module_param(tda9855, int, 0);
+module_param(tda9873, int, 0);
+module_param(tda9874a, int, 0);
+module_param(tea6300, int, 0);
+module_param(tea6420, int, 0);
+module_param(pic16c54, int, 0);
+module_param(ta8874z, int, 0);

 static struct CHIPDESC chiplist[] = {
 	{
diff -Nru a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c
--- a/drivers/media/video/tvmixer.c	2004-11-14 00:20:58 +01:00
+++ b/drivers/media/video/tvmixer.c	2004-11-14 00:20:58 +01:00
@@ -20,7 +20,7 @@
 #define DEV_MAX  4

 static int devnr = -1;
-MODULE_PARM(devnr,"i");
+module_param(devnr, int, 0);

 MODULE_AUTHOR("Gerd Knorr");
 MODULE_LICENSE("GPL");

                 reply	other threads:[~2004-11-13 23:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41969773.70006@ppp0.net \
    --to=jdittmer@ppp0.net \
    --cc=kraxel@bytesex.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.