The patch number 11562 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Uri Shkolnik  <uri...@yahoo.com>
Siano: unified the debug filter module parameter (dvb and core)


The sms_debug module parameter sets the debug filter
for the smsmdtv module. It has been moved to the core
component, and replace the smsdvb's.

Priority: normal

Signed-off-by: Uri Shkolnik <u...@siano-ms.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/dvb/siano/smscoreapi.c |    4 ++--
 linux/drivers/media/dvb/siano/smscoreapi.h |    3 ++-
 linux/drivers/media/dvb/siano/smsdvb.c     |    3 ---
 3 files changed, 4 insertions(+), 6 deletions(-)

diff -r 74bd46cf88ee -r fd645c976997 linux/drivers/media/dvb/siano/smscoreapi.c
--- a/linux/drivers/media/dvb/siano/smscoreapi.c        Mon Apr 20 13:00:52 
2009 -0300
+++ b/linux/drivers/media/dvb/siano/smscoreapi.c        Sun Apr 05 10:25:06 
2009 +0000
@@ -34,8 +34,8 @@
 #include "smscoreapi.h"
 #include "sms-cards.h"
 
-static int sms_dbg;
-module_param_named(debug, sms_dbg, int, 0644);
+int sms_debug;
+module_param_named(debug, sms_debug, int, 0644);
 MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
 
 struct smscore_device_notifyee_t {
diff -r 74bd46cf88ee -r fd645c976997 linux/drivers/media/dvb/siano/smscoreapi.h
--- a/linux/drivers/media/dvb/siano/smscoreapi.h        Mon Apr 20 13:00:52 
2009 -0300
+++ b/linux/drivers/media/dvb/siano/smscoreapi.h        Sun Apr 05 10:25:06 
2009 +0000
@@ -658,6 +658,7 @@ int smscore_led_state(struct smscore_dev
 
 
 /* ------------------------------------------------------------------------ */
+extern int sms_debug;
 
 #define DBG_INFO 1
 #define DBG_ADV  2
@@ -666,7 +667,7 @@ int smscore_led_state(struct smscore_dev
        printk(kern "%s: " fmt "\n", __func__, ##arg)
 
 #define dprintk(kern, lvl, fmt, arg...) do {\
-       if (sms_dbg & lvl) \
+       if (sms_debug & lvl) \
                sms_printk(kern, fmt, ##arg); } while (0)
 
 #define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg)
diff -r 74bd46cf88ee -r fd645c976997 linux/drivers/media/dvb/siano/smsdvb.c
--- a/linux/drivers/media/dvb/siano/smsdvb.c    Mon Apr 20 13:00:52 2009 -0300
+++ b/linux/drivers/media/dvb/siano/smsdvb.c    Sun Apr 05 10:25:06 2009 +0000
@@ -50,9 +50,6 @@ static struct list_head g_smsdvb_clients
 static struct list_head g_smsdvb_clients;
 static struct mutex g_smsdvb_clientslock;
 
-static int sms_dbg;
-module_param_named(debug, sms_dbg, int, 0644);
-MODULE_PARM_DESC(debug, "set debug level (info=1, adv=2 (or-able))");
 
 static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
 {


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/fd645c976997e7dc87bbc38d0e400f0343f34a37

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to