Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (7094): static memory

- Static memory is always initialized with 0.
- Replaced in some cases C99 comments for /* */

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Douglas Schilling Landgraf and committed by
Mauro Carvalho Chehab
ff699e6b 29bec0bf

+196 -192
+1 -1
drivers/media/common/ir-functions.c
··· 34 34 module_param(repeat, int, 0444); 35 35 MODULE_PARM_DESC(repeat,"auto-repeat for IR keys (default: on)"); 36 36 37 - static int debug = 0; /* debug level (0,1,2) */ 37 + static int debug; /* debug level (0,1,2) */ 38 38 module_param(debug, int, 0644); 39 39 40 40 #define dprintk(level, fmt, arg...) if (debug >= level) \
+1 -1
drivers/media/dvb/b2c2/flexcop-pci.c
··· 32 32 #define deb_irq(args...) dprintk(0x08,args) 33 33 #define deb_chk(args...) dprintk(0x10,args) 34 34 35 - static int debug = 0; 35 + static int debug; 36 36 module_param(debug, int, 0644); 37 37 MODULE_PARM_DESC(debug, "set debug level (1=info,2=regs,4=TS,8=irqdma (|-able))." DEBSTATUS); 38 38
+1 -1
drivers/media/dvb/dvb-core/dvb_net.c
··· 354 354 #ifdef ULE_DEBUG 355 355 /* The code inside ULE_DEBUG keeps a history of the last 100 TS cells processed. */ 356 356 static unsigned char ule_hist[100*TS_SZ]; 357 - static unsigned char *ule_where = ule_hist, ule_dump = 0; 357 + static unsigned char *ule_where = ule_hist, ule_dump; 358 358 #endif 359 359 360 360 /* For all TS cells in current buffer.
+1 -1
drivers/media/dvb/frontends/cx22702.c
··· 48 48 u8 prevUCBlocks; 49 49 }; 50 50 51 - static int debug = 0; 51 + static int debug; 52 52 #define dprintk if (debug) printk 53 53 54 54 /* Register values to initialise the demod */
+1 -1
drivers/media/dvb/frontends/dvb-pll.c
··· 44 44 45 45 static unsigned int dvb_pll_devcount; 46 46 47 - static int debug = 0; 47 + static int debug; 48 48 module_param(debug, int, 0644); 49 49 MODULE_PARM_DESC(debug, "enable verbose debug messages"); 50 50
+1 -1
drivers/media/dvb/frontends/lgdt330x.c
··· 49 49 /* Use Equalizer Mean Squared Error instead of Phaser Tracker MSE */ 50 50 /* #define USE_EQMSE */ 51 51 52 - static int debug = 0; 52 + static int debug; 53 53 module_param(debug, int, 0644); 54 54 MODULE_PARM_DESC(debug,"Turn on/off lgdt330x frontend debugging (default:off)."); 55 55 #define dprintk(args...) \
+1 -1
drivers/media/dvb/frontends/nxt6000.c
··· 38 38 struct dvb_frontend frontend; 39 39 }; 40 40 41 - static int debug = 0; 41 + static int debug; 42 42 #define dprintk if (debug) printk 43 43 44 44 static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data)
+1 -1
drivers/media/dvb/frontends/s5h1409.c
··· 48 48 u32 qam_state; 49 49 }; 50 50 51 - static int debug = 0; 51 + static int debug; 52 52 #define dprintk if (debug) printk 53 53 54 54 /* Register values to initialise the demod, this will set VSB by default */
+1 -1
drivers/media/dvb/frontends/s5h1420.c
··· 53 53 struct dvb_frontend_tune_settings* fesettings); 54 54 55 55 56 - static int debug = 0; 56 + static int debug; 57 57 #define dprintk if (debug) printk 58 58 59 59 static int s5h1420_writereg (struct s5h1420_state* state, u8 reg, u8 data)
+6 -6
drivers/media/dvb/frontends/sp8870.c
··· 449 449 return 0; 450 450 } 451 451 452 - // number of trials to recover from lockup 452 + /* number of trials to recover from lockup */ 453 453 #define MAXTRIALS 5 454 - // maximum checks for data valid signal 454 + /* maximum checks for data valid signal */ 455 455 #define MAXCHECKS 100 456 456 457 - // only for debugging: counter for detected lockups 458 - static int lockups = 0; 459 - // only for debugging: counter for channel switches 460 - static int switches = 0; 457 + /* only for debugging: counter for detected lockups */ 458 + static int lockups; 459 + /* only for debugging: counter for channel switches */ 460 + static int switches; 461 461 462 462 static int sp8870_set_frontend (struct dvb_frontend* fe, struct dvb_frontend_parameters *p) 463 463 {
+1 -1
drivers/media/dvb/frontends/tda10086.c
··· 43 43 bool has_lock; 44 44 }; 45 45 46 - static int debug = 0; 46 + static int debug; 47 47 #define dprintk(args...) \ 48 48 do { \ 49 49 if (debug) printk(KERN_DEBUG "tda10086: " args); \
+1 -1
drivers/media/dvb/frontends/tda826x.c
··· 26 26 27 27 #include "tda826x.h" 28 28 29 - static int debug = 0; 29 + static int debug; 30 30 #define dprintk(args...) \ 31 31 do { \ 32 32 if (debug) printk(KERN_DEBUG "tda826x: " args); \
+1 -1
drivers/media/dvb/frontends/tda827x.c
··· 25 25 26 26 #include "tda827x.h" 27 27 28 - static int debug = 0; 28 + static int debug; 29 29 module_param(debug, int, 0644); 30 30 MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off)."); 31 31
+1 -1
drivers/media/dvb/frontends/ves1x93.c
··· 48 48 u8 demod_type; 49 49 }; 50 50 51 - static int debug = 0; 51 + static int debug; 52 52 #define dprintk if (debug) printk 53 53 54 54 #define DEMOD_VES1893 0
+1 -1
drivers/media/dvb/frontends/zl10353.c
··· 46 46 if (debug) printk(KERN_DEBUG "zl10353: " args); \ 47 47 } while (0) 48 48 49 - static int debug_regs = 0; 49 + static int debug_regs; 50 50 51 51 static int zl10353_single_write(struct dvb_frontend *fe, u8 reg, u8 val) 52 52 {
+1 -1
drivers/media/dvb/ttpci/budget-ci.c
··· 86 86 module_param(rc5_device, int, 0644); 87 87 MODULE_PARM_DESC(rc5_device, "only IR commands to given RC5 device (device = 0 - 31, any device = 255, default: autodetect)"); 88 88 89 - static int ir_debug = 0; 89 + static int ir_debug; 90 90 module_param(ir_debug, int, 0644); 91 91 MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding"); 92 92
+1 -1
drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
··· 542 542 const u8 * data, int len); 543 543 #endif 544 544 545 - static int numpkt = 0, numts, numstuff, numsec, numinvalid; 545 + static int numpkt, numts, numstuff, numsec, numinvalid; 546 546 static unsigned long lastj; 547 547 548 548 static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack,
+1 -1
drivers/media/radio/miropcm20-rds.c
··· 19 19 #include "miropcm20-rds-core.h" 20 20 21 21 static char * text_buffer; 22 - static int rds_users = 0; 22 + static int rds_users; 23 23 24 24 25 25 static int rds_f_open(struct inode *in, struct file *fi)
+5 -5
drivers/media/radio/radio-cadet.c
··· 69 69 70 70 static int io=-1; /* default to isapnp activation */ 71 71 static int radio_nr = -1; 72 - static int users=0; 73 - static int curtuner=0; 74 - static int tunestat=0; 75 - static int sigstrength=0; 72 + static int users; 73 + static int curtuner; 74 + static int tunestat; 75 + static int sigstrength; 76 76 static wait_queue_head_t read_queue; 77 77 static struct timer_list readtimer; 78 - static __u8 rdsin=0,rdsout=0,rdsstat=0; 78 + static __u8 rdsin, rdsout, rdsstat; 79 79 static unsigned char rdsbuf[RDS_BUFFER]; 80 80 static spinlock_t cadet_io_lock; 81 81
+1 -1
drivers/media/radio/radio-typhoon.c
··· 404 404 module_param(radio_nr, int, 0); 405 405 406 406 #ifdef MODULE 407 - static unsigned long mutefreq = 0; 407 + static unsigned long mutefreq; 408 408 module_param(mutefreq, ulong, 0); 409 409 MODULE_PARM_DESC(mutefreq, "Frequency used when muting the card (in kHz)"); 410 410 #endif
+1 -1
drivers/media/video/adv7170.c
··· 56 56 #define I2C_NAME(x) (x)->name 57 57 58 58 59 - static int debug = 0; 59 + static int debug; 60 60 module_param(debug, int, 0); 61 61 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 62 62
+1 -1
drivers/media/video/adv7175.c
··· 52 52 #define I2C_NAME(s) (s)->name 53 53 54 54 55 - static int debug = 0; 55 + static int debug; 56 56 module_param(debug, int, 0); 57 57 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 58 58
+2 -2
drivers/media/video/arv.c
··· 125 125 /* default frequency */ 126 126 #define DEFAULT_FREQ 50 /* 50 or 75 (MHz) is available as BCLK */ 127 127 static int freq = DEFAULT_FREQ; /* BCLK: available 50 or 70 (MHz) */ 128 - static int vga = 0; /* default mode(0:QVGA mode, other:VGA mode) */ 129 - static int vga_interlace = 0; /* 0 is normal mode for, else interlace mode */ 128 + static int vga; /* default mode(0:QVGA mode, other:VGA mode) */ 129 + static int vga_interlace; /* 0 is normal mode for, else interlace mode */ 130 130 module_param(freq, int, 0); 131 131 module_param(vga, int, 0); 132 132 module_param(vga_interlace, int, 0);
+1 -1
drivers/media/video/bt819.c
··· 57 57 #define I2C_NAME(s) (s)->name 58 58 59 59 60 - static int debug = 0; 60 + static int debug; 61 61 module_param(debug, int, 0); 62 62 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 63 63
+1 -1
drivers/media/video/bt856.c
··· 56 56 #define I2C_NAME(s) (s)->name 57 57 58 58 59 - static int debug = 0; 59 + static int debug; 60 60 module_param(debug, int, 0); 61 61 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 62 62
+1 -1
drivers/media/video/bt8xx/bttv-vbi.c
··· 54 54 #define VBI_DEFLINES 16 55 55 56 56 static unsigned int vbibufs = 4; 57 - static unsigned int vbi_debug = 0; 57 + static unsigned int vbi_debug; 58 58 59 59 module_param(vbibufs, int, 0444); 60 60 module_param(vbi_debug, int, 0644);
+2 -2
drivers/media/video/bw-qcam.c
··· 523 523 int ret=1; 524 524 unsigned int hi, lo; 525 525 unsigned int hi2, lo2; 526 - static int state = 0; 526 + static int state; 527 527 528 528 if (buffer == NULL) 529 529 { ··· 912 912 913 913 #define MAX_CAMS 4 914 914 static struct qcam_device *qcams[MAX_CAMS]; 915 - static unsigned int num_cams = 0; 915 + static unsigned int num_cams; 916 916 917 917 static int init_bwqcam(struct parport *port) 918 918 {
+2 -2
drivers/media/video/c-qcam.c
··· 69 69 70 70 static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; 71 71 static int probe = 2; 72 - static int force_rgb = 0; 72 + static int force_rgb; 73 73 static int video_nr = -1; 74 74 75 75 static inline void qcam_set_ack(struct qcam_device *qcam, unsigned int i) ··· 741 741 } 742 742 743 743 static struct qcam_device *qcams[MAX_CAMS]; 744 - static unsigned int num_cams = 0; 744 + static unsigned int num_cams; 745 745 746 746 static int init_cqcam(struct parport *port) 747 747 {
+2 -2
drivers/media/video/cafe_ccic.c
··· 65 65 */ 66 66 67 67 #define MAX_DMA_BUFS 3 68 - static int alloc_bufs_at_read = 0; 68 + static int alloc_bufs_at_read; 69 69 module_param(alloc_bufs_at_read, bool, 0444); 70 70 MODULE_PARM_DESC(alloc_bufs_at_read, 71 71 "Non-zero value causes DMA buffers to be allocated when the " ··· 99 99 "will be allowed to allocate. These buffers are big and live " 100 100 "in vmalloc space."); 101 101 102 - static int flip = 0; 102 + static int flip; 103 103 module_param(flip, bool, 0444); 104 104 MODULE_PARM_DESC(flip, 105 105 "If set, the sensor will be instructed to flip the image "
+2 -2
drivers/media/video/cpia2/cpia2_core.c
··· 34 34 #include <linux/slab.h> 35 35 #include <linux/vmalloc.h> 36 36 37 - //#define _CPIA2_DEBUG_ 37 + /* #define _CPIA2_DEBUG_ */ 38 38 39 39 #include "cpia2patch.h" 40 40 ··· 48 48 }; 49 49 #endif 50 50 51 - static unsigned int debugs_on = 0;//DEBUG_REG; 51 + static unsigned int debugs_on; /* default 0 - DEBUG_REG */ 52 52 53 53 54 54 /******************************************************************************
+1 -1
drivers/media/video/cpia2/cpia2_usb.c
··· 84 84 *****************************************************************************/ 85 85 static void process_frame(struct camera_data *cam) 86 86 { 87 - static int frame_count = 0; 87 + static int frame_count; 88 88 89 89 unsigned char *inbuff = cam->workbuff->data; 90 90
+1 -1
drivers/media/video/cx23885/cx23885-i2c.c
··· 33 33 module_param(i2c_debug, int, 0644); 34 34 MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); 35 35 36 - static unsigned int i2c_scan = 0; 36 + static unsigned int i2c_scan; 37 37 module_param(i2c_scan, int, 0444); 38 38 MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 39 39
+1 -1
drivers/media/video/cx88/cx88-blackbird.c
··· 45 45 module_param(mpegbufs,int,0644); 46 46 MODULE_PARM_DESC(mpegbufs,"number of mpeg buffers, range 2-32"); 47 47 48 - static unsigned int debug = 0; 48 + static unsigned int debug; 49 49 module_param(debug,int,0644); 50 50 MODULE_PARM_DESC(debug,"enable debug messages [blackbird]"); 51 51
+3 -3
drivers/media/video/cx88/cx88-core.c
··· 47 47 48 48 /* ------------------------------------------------------------------ */ 49 49 50 - static unsigned int core_debug = 0; 50 + static unsigned int core_debug; 51 51 module_param(core_debug,int,0644); 52 52 MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); 53 53 54 - static unsigned int nicam = 0; 54 + static unsigned int nicam; 55 55 module_param(nicam,int,0644); 56 56 MODULE_PARM_DESC(nicam,"tv audio is nicam"); 57 57 58 - static unsigned int nocomb = 0; 58 + static unsigned int nocomb; 59 59 module_param(nocomb,int,0644); 60 60 MODULE_PARM_DESC(nocomb,"disable comb filter"); 61 61
+1 -1
drivers/media/video/cx88/cx88-dvb.c
··· 51 51 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); 52 52 MODULE_LICENSE("GPL"); 53 53 54 - static unsigned int debug = 0; 54 + static unsigned int debug; 55 55 module_param(debug, int, 0644); 56 56 MODULE_PARM_DESC(debug,"enable debug messages [dvb]"); 57 57
+2 -2
drivers/media/video/cx88/cx88-i2c.c
··· 35 35 #include "cx88.h" 36 36 #include <media/v4l2-common.h> 37 37 38 - static unsigned int i2c_debug = 0; 38 + static unsigned int i2c_debug; 39 39 module_param(i2c_debug, int, 0644); 40 40 MODULE_PARM_DESC(i2c_debug,"enable debug messages [i2c]"); 41 41 42 - static unsigned int i2c_scan = 0; 42 + static unsigned int i2c_scan; 43 43 module_param(i2c_scan, int, 0444); 44 44 MODULE_PARM_DESC(i2c_scan,"scan i2c bus at insmod time"); 45 45
+1 -1
drivers/media/video/cx88/cx88-input.c
··· 57 57 u32 mask_keyup; 58 58 }; 59 59 60 - static int ir_debug = 0; 60 + static int ir_debug; 61 61 module_param(ir_debug, int, 0644); /* debug level [IR] */ 62 62 MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); 63 63
+1 -1
drivers/media/video/cx88/cx88-mpeg.c
··· 39 39 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); 40 40 MODULE_LICENSE("GPL"); 41 41 42 - static unsigned int debug = 0; 42 + static unsigned int debug; 43 43 module_param(debug,int,0644); 44 44 MODULE_PARM_DESC(debug,"enable debug messages [mpeg]"); 45 45
+3 -3
drivers/media/video/cx88/cx88-tvaudio.c
··· 53 53 54 54 #include "cx88.h" 55 55 56 - static unsigned int audio_debug = 0; 56 + static unsigned int audio_debug; 57 57 module_param(audio_debug, int, 0644); 58 58 MODULE_PARM_DESC(audio_debug, "enable debug messages [audio]"); 59 59 60 - static unsigned int always_analog = 0; 60 + static unsigned int always_analog; 61 61 module_param(always_analog,int,0644); 62 62 MODULE_PARM_DESC(always_analog,"force analog audio out"); 63 63 64 - static unsigned int radio_deemphasis = 0; 64 + static unsigned int radio_deemphasis; 65 65 module_param(radio_deemphasis,int,0644); 66 66 MODULE_PARM_DESC(radio_deemphasis, "Radio deemphasis time constant, " 67 67 "0=None, 1=50us (elsewhere), 2=75us (USA)");
+1 -1
drivers/media/video/cx88/cx88-vbi.c
··· 11 11 module_param(vbibufs,int,0644); 12 12 MODULE_PARM_DESC(vbibufs,"number of vbi buffers, range 2-32"); 13 13 14 - static unsigned int vbi_debug = 0; 14 + static unsigned int vbi_debug; 15 15 module_param(vbi_debug,int,0644); 16 16 MODULE_PARM_DESC(vbi_debug,"enable debug messages [vbi]"); 17 17
+2 -2
drivers/media/video/cx88/cx88-video.c
··· 63 63 MODULE_PARM_DESC(vbi_nr,"vbi device numbers"); 64 64 MODULE_PARM_DESC(radio_nr,"radio device numbers"); 65 65 66 - static unsigned int video_debug = 0; 66 + static unsigned int video_debug; 67 67 module_param(video_debug,int,0644); 68 68 MODULE_PARM_DESC(video_debug,"enable debug messages [video]"); 69 69 70 - static unsigned int irq_debug = 0; 70 + static unsigned int irq_debug; 71 71 module_param(irq_debug,int,0644); 72 72 MODULE_PARM_DESC(irq_debug,"enable debug messages [IRQ handler]"); 73 73
+2 -2
drivers/media/video/dpc7146.c
··· 54 54 55 55 #define DPC_BOARD_CAN_DO_VBI(dev) (dev->revision != 0) 56 56 57 - static int debug = 0; 57 + static int debug; 58 58 module_param(debug, int, 0); 59 59 MODULE_PARM_DESC(debug, "debug verbosity"); 60 60 61 - static int dpc_num = 0; 61 + static int dpc_num; 62 62 63 63 #define DPC_INPUTS 2 64 64 static struct v4l2_input dpc_inputs[DPC_INPUTS] = {
+3 -3
drivers/media/video/em28xx/em28xx-core.c
··· 31 31 32 32 /* #define ENABLE_DEBUG_ISOC_FRAMES */ 33 33 34 - static unsigned int core_debug = 0; 34 + static unsigned int core_debug; 35 35 module_param(core_debug,int,0644); 36 36 MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); 37 37 ··· 40 40 printk(KERN_INFO "%s %s :"fmt, \ 41 41 dev->name, __FUNCTION__ , ##arg); } while (0) 42 42 43 - static unsigned int reg_debug = 0; 43 + static unsigned int reg_debug; 44 44 module_param(reg_debug,int,0644); 45 45 MODULE_PARM_DESC(reg_debug,"enable debug messages [URB reg]"); 46 46 ··· 49 49 printk(KERN_INFO "%s %s :"fmt, \ 50 50 dev->name, __FUNCTION__ , ##arg); } while (0) 51 51 52 - static unsigned int isoc_debug = 0; 52 + static unsigned int isoc_debug; 53 53 module_param(isoc_debug,int,0644); 54 54 MODULE_PARM_DESC(isoc_debug,"enable debug messages [isoc transfers]"); 55 55
+2 -2
drivers/media/video/em28xx/em28xx-i2c.c
··· 33 33 34 34 /* ----------------------------------------------------------- */ 35 35 36 - static unsigned int i2c_scan = 0; 36 + static unsigned int i2c_scan; 37 37 module_param(i2c_scan, int, 0444); 38 38 MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 39 39 40 - static unsigned int i2c_debug = 0; 40 + static unsigned int i2c_debug; 41 41 module_param(i2c_debug, int, 0644); 42 42 MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); 43 43
+1 -1
drivers/media/video/em28xx/em28xx-video.c
··· 74 74 MODULE_PARM_DESC(vbi_nr, "vbi device numbers"); 75 75 MODULE_PARM_DESC(radio_nr, "radio device numbers"); 76 76 77 - static unsigned int video_debug = 0; 77 + static unsigned int video_debug; 78 78 module_param(video_debug,int,0644); 79 79 MODULE_PARM_DESC(video_debug,"enable debug messages [video]"); 80 80
+1 -1
drivers/media/video/et61x251/et61x251_core.c
··· 2538 2538 { 2539 2539 struct usb_device *udev = interface_to_usbdev(intf); 2540 2540 struct et61x251_device* cam; 2541 - static unsigned int dev_nr = 0; 2541 + static unsigned int dev_nr; 2542 2542 unsigned int i; 2543 2543 int err = 0; 2544 2544
+2 -2
drivers/media/video/hexium_gemini.c
··· 25 25 26 26 #include <media/saa7146_vv.h> 27 27 28 - static int debug = 0; 28 + static int debug; 29 29 module_param(debug, int, 0); 30 30 MODULE_PARM_DESC(debug, "debug verbosity"); 31 31 32 32 /* global variables */ 33 - static int hexium_num = 0; 33 + static int hexium_num; 34 34 35 35 #define HEXIUM_GEMINI 4 36 36 #define HEXIUM_GEMINI_DUAL 5
+2 -2
drivers/media/video/hexium_orion.c
··· 25 25 26 26 #include <media/saa7146_vv.h> 27 27 28 - static int debug = 0; 28 + static int debug; 29 29 module_param(debug, int, 0); 30 30 MODULE_PARM_DESC(debug, "debug verbosity"); 31 31 32 32 /* global variables */ 33 - static int hexium_num = 0; 33 + static int hexium_num; 34 34 35 35 #define HEXIUM_HV_PCI6_ORION 1 36 36 #define HEXIUM_ORION_1SVHS_3BNC 2
+1 -1
drivers/media/video/ir-kbd-i2c.c
··· 50 50 static int debug; 51 51 module_param(debug, int, 0644); /* debug level (0,1,2) */ 52 52 53 - static int hauppauge = 0; 53 + static int hauppauge; 54 54 module_param(hauppauge, int, 0644); /* Choose Hauppauge remote */ 55 55 MODULE_PARM_DESC(hauppauge, "Specify Hauppauge remote: 0=black, 1=grey (defaults to 0)"); 56 56
+3 -3
drivers/media/video/ivtv/ivtv-driver.c
··· 126 126 static int dec_yuv_buffers = IVTV_DEFAULT_DEC_YUV_BUFFERS; 127 127 static int dec_vbi_buffers = IVTV_DEFAULT_DEC_VBI_BUFFERS; 128 128 129 - static int ivtv_yuv_mode = 0; 130 - static int ivtv_yuv_threshold=-1; 129 + static int ivtv_yuv_mode; 130 + static int ivtv_yuv_threshold = -1; 131 131 static int ivtv_pci_latency = 1; 132 132 133 - int ivtv_debug = 0; 133 + int ivtv_debug; 134 134 135 135 static int newi2c = -1; 136 136
+1 -1
drivers/media/video/meye.c
··· 789 789 { 790 790 u32 v; 791 791 int reqnr; 792 - static int sequence = 0; 792 + static int sequence; 793 793 794 794 v = mchip_read(MCHIP_MM_INTA); 795 795
+2 -2
drivers/media/video/mt20xx.c
··· 10 10 #include "tuner-i2c.h" 11 11 #include "mt20xx.h" 12 12 13 - static int debug = 0; 13 + static int debug; 14 14 module_param(debug, int, 0644); 15 15 MODULE_PARM_DESC(debug, "enable verbose debug messages"); 16 16 ··· 24 24 static unsigned int tv_antenna = 1; 25 25 module_param(tv_antenna, int, 0644); 26 26 27 - static unsigned int radio_antenna = 0; 27 + static unsigned int radio_antenna; 28 28 module_param(radio_antenna, int, 0644); 29 29 30 30 /* ---------------------------------------------------------------------- */
+2 -2
drivers/media/video/mxb.c
··· 38 38 #define MXB_BOARD_CAN_DO_VBI(dev) (dev->revision != 0) 39 39 40 40 /* global variable */ 41 - static int mxb_num = 0; 41 + static int mxb_num; 42 42 43 43 /* initial frequence the tuner will be tuned to. 44 44 in verden (lower saxony, germany) 4148 is a ··· 47 47 module_param(freq, int, 0644); 48 48 MODULE_PARM_DESC(freq, "initial frequency the tuner will be tuned to while setup"); 49 49 50 - static int debug = 0; 50 + static int debug; 51 51 module_param(debug, int, 0644); 52 52 MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 53 53
+2 -2
drivers/media/video/pms.c
··· 57 57 u8 hits; 58 58 }; 59 59 60 - static int i2c_count = 0; 60 + static int i2c_count; 61 61 static struct i2c_info i2cinfo[64]; 62 62 63 63 static int decoder = PHILIPS2; 64 - static int standard = 0; /* 0 - auto 1 - ntsc 2 - pal 3 - secam */ 64 + static int standard; /* 0 - auto 1 - ntsc 2 - pal 3 - secam */ 65 65 66 66 /* 67 67 * I/O ports and Shared Memory
+3 -3
drivers/media/video/pvrusb2/pvrusb2-hdw.c
··· 43 43 static struct pvr2_hdw *unit_pointers[PVR_NUM] = {[ 0 ... PVR_NUM-1 ] = NULL}; 44 44 static DEFINE_MUTEX(pvr2_unit_mtx); 45 45 46 - static int ctlchg = 0; 46 + static int ctlchg; 47 47 static int initusbreset = 1; 48 - static int procreload = 0; 48 + static int procreload; 49 49 static int tuner[PVR_NUM] = { [0 ... PVR_NUM-1] = -1 }; 50 50 static int tolerance[PVR_NUM] = { [0 ... PVR_NUM-1] = 0 }; 51 51 static int video_std[PVR_NUM] = { [0 ... PVR_NUM-1] = 0 }; 52 - static int init_pause_msec = 0; 52 + static int init_pause_msec; 53 53 54 54 module_param(ctlchg, int, S_IRUGO|S_IWUSR); 55 55 MODULE_PARM_DESC(ctlchg, "0=optimize ctl change 1=always accept new ctl value");
+1 -1
drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
··· 35 35 36 36 */ 37 37 38 - static unsigned int i2c_scan = 0; 38 + static unsigned int i2c_scan; 39 39 module_param(i2c_scan, int, S_IRUGO|S_IWUSR); 40 40 MODULE_PARM_DESC(i2c_scan,"scan i2c bus at insmod time"); 41 41
+4 -4
drivers/media/video/pwc/pwc-if.c
··· 130 130 #ifdef CONFIG_USB_PWC_DEBUG 131 131 int pwc_trace = PWC_DEBUG_LEVEL; 132 132 #endif 133 - static int power_save = 0; 134 - static int led_on = 100, led_off = 0; /* defaults to LED that is on while in use */ 133 + static int power_save; 134 + static int led_on = 100, led_off; /* defaults to LED that is on while in use */ 135 135 static int pwc_preferred_compression = 1; /* 0..3 = uncompressed..high */ 136 136 static struct { 137 137 int type; ··· 786 786 } /* ..status == 0 */ 787 787 else { 788 788 /* This is normally not interesting to the user, unless 789 - * you are really debugging something */ 790 - static int iso_error = 0; 789 + * you are really debugging something, default = 0 */ 790 + static int iso_error; 791 791 iso_error++; 792 792 if (iso_error < 20) 793 793 PWC_DEBUG_FLOW("Iso frame %d of USB has error %d\n", i, fst);
+4 -4
drivers/media/video/saa6588.c
··· 44 44 I2C_CLIENT_INSMOD; 45 45 46 46 /* insmod options */ 47 - static unsigned int debug = 0; 48 - static unsigned int xtal = 0; 49 - static unsigned int rbds = 0; 50 - static unsigned int plvl = 0; 47 + static unsigned int debug; 48 + static unsigned int xtal; 49 + static unsigned int rbds; 50 + static unsigned int plvl; 51 51 static unsigned int bufblocks = 100; 52 52 53 53 module_param(debug, int, 0644);
+1 -1
drivers/media/video/saa7110.c
··· 46 46 #include <media/v4l2-common.h> 47 47 #include <linux/video_decoder.h> 48 48 49 - static int debug = 0; 49 + static int debug; 50 50 module_param(debug, int, 0); 51 51 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 52 52
+1 -1
drivers/media/video/saa7111.c
··· 55 55 #define I2C_NAME(s) (s)->name 56 56 57 57 58 - static int debug = 0; 58 + static int debug; 59 59 module_param(debug, int, 0644); 60 60 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 61 61
+1 -1
drivers/media/video/saa7114.c
··· 56 56 #define I2C_NAME(x) (x)->name 57 57 58 58 59 - static int debug = 0; 59 + static int debug; 60 60 module_param(debug, int, 0); 61 61 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 62 62
+1 -1
drivers/media/video/saa7115.c
··· 57 57 "Hans Verkuil, Mauro Carvalho Chehab"); 58 58 MODULE_LICENSE("GPL"); 59 59 60 - static int debug = 0; 60 + static int debug; 61 61 module_param(debug, bool, 0644); 62 62 63 63 MODULE_PARM_DESC(debug, "Debug level (0-1)");
+1 -1
drivers/media/video/saa711x.c
··· 48 48 49 49 #include <linux/video_decoder.h> 50 50 51 - static int debug = 0; 51 + static int debug; 52 52 module_param(debug, int, 0644); 53 53 MODULE_PARM_DESC(debug, " Set the default Debug level. Default: 0 (Off) - (0-1)"); 54 54
+1 -1
drivers/media/video/saa7134/saa7134-alsa.c
··· 31 31 #include "saa7134.h" 32 32 #include "saa7134-reg.h" 33 33 34 - static unsigned int debug = 0; 34 + static unsigned int debug; 35 35 module_param(debug, int, 0644); 36 36 MODULE_PARM_DESC(debug,"enable debug messages [alsa]"); 37 37
+5 -5
drivers/media/video/saa7134/saa7134-core.c
··· 42 42 43 43 /* ------------------------------------------------------------------ */ 44 44 45 - static unsigned int irq_debug = 0; 45 + static unsigned int irq_debug; 46 46 module_param(irq_debug, int, 0644); 47 47 MODULE_PARM_DESC(irq_debug,"enable debug messages [IRQ handler]"); 48 48 49 - static unsigned int core_debug = 0; 49 + static unsigned int core_debug; 50 50 module_param(core_debug, int, 0644); 51 51 MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); 52 52 53 - static unsigned int gpio_tracking = 0; 53 + static unsigned int gpio_tracking; 54 54 module_param(gpio_tracking, int, 0644); 55 55 MODULE_PARM_DESC(gpio_tracking,"enable debug messages [gpio]"); 56 56 57 - static unsigned int alsa = 0; 57 + static unsigned int alsa; 58 58 module_param(alsa, int, 0644); 59 59 MODULE_PARM_DESC(alsa,"enable ALSA DMA sound [dmasound]"); 60 60 61 - static unsigned int oss = 0; 61 + static unsigned int oss; 62 62 module_param(oss, int, 0644); 63 63 MODULE_PARM_DESC(oss,"enable OSS DMA sound [dmasound]"); 64 64
+3 -3
drivers/media/video/saa7134/saa7134-dvb.c
··· 47 47 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); 48 48 MODULE_LICENSE("GPL"); 49 49 50 - static unsigned int antenna_pwr = 0; 50 + static unsigned int antenna_pwr; 51 51 52 52 module_param(antenna_pwr, int, 0444); 53 53 MODULE_PARM_DESC(antenna_pwr,"enable antenna power (Pinnacle 300i)"); 54 54 55 - static int use_frontend = 0; 55 + static int use_frontend; 56 56 module_param(use_frontend, int, 0644); 57 57 MODULE_PARM_DESC(use_frontend,"for cards with multiple frontends (0: terrestrial, 1: satellite)"); 58 58 59 - static int debug = 0; 59 + static int debug; 60 60 module_param(debug, int, 0644); 61 61 MODULE_PARM_DESC(debug, "Turn on/off module debugging (default:off)."); 62 62
+1 -1
drivers/media/video/saa7134/saa7134-empress.c
··· 40 40 module_param_array(empress_nr, int, NULL, 0444); 41 41 MODULE_PARM_DESC(empress_nr,"ts device number"); 42 42 43 - static unsigned int debug = 0; 43 + static unsigned int debug; 44 44 module_param(debug, int, 0644); 45 45 MODULE_PARM_DESC(debug,"enable debug messages"); 46 46
+2 -2
drivers/media/video/saa7134/saa7134-i2c.c
··· 33 33 34 34 /* ----------------------------------------------------------- */ 35 35 36 - static unsigned int i2c_debug = 0; 36 + static unsigned int i2c_debug; 37 37 module_param(i2c_debug, int, 0644); 38 38 MODULE_PARM_DESC(i2c_debug,"enable debug messages [i2c]"); 39 39 40 - static unsigned int i2c_scan = 0; 40 + static unsigned int i2c_scan; 41 41 module_param(i2c_scan, int, 0444); 42 42 MODULE_PARM_DESC(i2c_scan,"scan i2c bus at insmod time"); 43 43
+3 -3
drivers/media/video/saa7134/saa7134-input.c
··· 27 27 #include "saa7134-reg.h" 28 28 #include "saa7134.h" 29 29 30 - static unsigned int disable_ir = 0; 30 + static unsigned int disable_ir; 31 31 module_param(disable_ir, int, 0444); 32 32 MODULE_PARM_DESC(disable_ir,"disable infrared remote support"); 33 33 34 - static unsigned int ir_debug = 0; 34 + static unsigned int ir_debug; 35 35 module_param(ir_debug, int, 0644); 36 36 MODULE_PARM_DESC(ir_debug,"enable debug messages [IR]"); 37 37 38 - static int pinnacle_remote = 0; 38 + static int pinnacle_remote; 39 39 module_param(pinnacle_remote, int, 0644); /* Choose Pinnacle PCTV remote */ 40 40 MODULE_PARM_DESC(pinnacle_remote, "Specify Pinnacle PCTV remote: 0=coloured, 1=grey (defaults to 0)"); 41 41
+1 -1
drivers/media/video/saa7134/saa7134-ts.c
··· 32 32 33 33 /* ------------------------------------------------------------------ */ 34 34 35 - static unsigned int ts_debug = 0; 35 + static unsigned int ts_debug; 36 36 module_param(ts_debug, int, 0644); 37 37 MODULE_PARM_DESC(ts_debug,"enable debug messages [ts]"); 38 38
+3 -3
drivers/media/video/saa7134/saa7134-tvaudio.c
··· 35 35 36 36 /* ------------------------------------------------------------------ */ 37 37 38 - static unsigned int audio_debug = 0; 38 + static unsigned int audio_debug; 39 39 module_param(audio_debug, int, 0644); 40 40 MODULE_PARM_DESC(audio_debug,"enable debug messages [tv audio]"); 41 41 42 - static unsigned int audio_ddep = 0; 42 + static unsigned int audio_ddep; 43 43 module_param(audio_ddep, int, 0644); 44 44 MODULE_PARM_DESC(audio_ddep,"audio ddep overwrite"); 45 45 46 46 static int audio_clock_override = UNSET; 47 47 module_param(audio_clock_override, int, 0644); 48 48 49 - static int audio_clock_tweak = 0; 49 + static int audio_clock_tweak; 50 50 module_param(audio_clock_tweak, int, 0644); 51 51 MODULE_PARM_DESC(audio_clock_tweak, "Audio clock tick fine tuning for cards with audio crystal that's slightly off (range [-1024 .. 1024])"); 52 52
+1 -1
drivers/media/video/saa7134/saa7134-vbi.c
··· 31 31 32 32 /* ------------------------------------------------------------------ */ 33 33 34 - static unsigned int vbi_debug = 0; 34 + static unsigned int vbi_debug; 35 35 module_param(vbi_debug, int, 0644); 36 36 MODULE_PARM_DESC(vbi_debug,"enable debug messages [vbi]"); 37 37
+1 -1
drivers/media/video/saa7134/saa7134-video.c
··· 40 40 41 41 unsigned int video_debug; 42 42 static unsigned int gbuffers = 8; 43 - static unsigned int noninterlaced = 0; 43 + static unsigned int noninterlaced; /* 0 */ 44 44 static unsigned int gbufsize = 720*576*4; 45 45 static unsigned int gbufsize_max = 720*576*4; 46 46 static char secam[] = "--";
+1 -1
drivers/media/video/saa7185.c
··· 52 52 #define I2C_NAME(s) (s)->name 53 53 54 54 55 - static int debug = 0; 55 + static int debug; 56 56 module_param(debug, int, 0); 57 57 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 58 58
+1 -1
drivers/media/video/se401.c
··· 35 35 #include <linux/usb.h> 36 36 #include "se401.h" 37 37 38 - static int flickerless=0; 38 + static int flickerless; 39 39 static int video_nr = -1; 40 40 41 41 static struct usb_device_id device_table [] = {
+1 -1
drivers/media/video/sn9c102/sn9c102_core.c
··· 3239 3239 { 3240 3240 struct usb_device *udev = interface_to_usbdev(intf); 3241 3241 struct sn9c102_device* cam; 3242 - static unsigned int dev_nr = 0; 3242 + static unsigned int dev_nr; 3243 3243 unsigned int i; 3244 3244 int err = 0, r; 3245 3245
+2 -2
drivers/media/video/stradis.c
··· 58 58 59 59 static struct saa7146 saa7146s[SAA7146_MAX]; 60 60 61 - static int saa_num = 0; /* number of SAA7146s in use */ 61 + static int saa_num; /* number of SAA7146s in use */ 62 62 63 63 static int video_nr = -1; 64 64 module_param(video_nr, int, 0); ··· 248 248 attach_inform(saa, i); 249 249 } 250 250 251 - static int debiwait_maxwait = 0; 251 + static int debiwait_maxwait; 252 252 253 253 static int wait_for_debi_done(struct saa7146 *saa) 254 254 {
+6 -3
drivers/media/video/stv680.c
··· 72 72 #include "stv680.h" 73 73 74 74 static int video_nr = -1; 75 - static int swapRGB = 0; /* default for auto sleect */ 76 - static int swapRGB_on = 0; /* default to allow auto select; -1=swap never, +1= swap always */ 77 75 78 - static unsigned int debug = 0; 76 + static int swapRGB; /* 0 = default for auto select */ 77 + 78 + /* 0 = default to allow auto select; -1 = swap never, +1 = swap always */ 79 + static int swapRGB_on; 80 + 81 + static unsigned int debug; 79 82 80 83 #define PDEBUG(level, fmt, args...) \ 81 84 do { \
+1 -1
drivers/media/video/tda9840.c
··· 31 31 32 32 #include "tda9840.h" 33 33 34 - static int debug = 0; /* insmod parameter */ 34 + static int debug; /* insmod parameter */ 35 35 module_param(debug, int, 0644); 36 36 MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 37 37 #define dprintk(args...) \
+1 -1
drivers/media/video/tea5761.c
··· 14 14 #include "tuner-i2c.h" 15 15 #include "tea5761.h" 16 16 17 - static int debug = 0; 17 + static int debug; 18 18 module_param(debug, int, 0644); 19 19 MODULE_PARM_DESC(debug, "enable verbose debug messages"); 20 20
+1 -1
drivers/media/video/tea5767.c
··· 16 16 #include "tuner-i2c.h" 17 17 #include "tea5767.h" 18 18 19 - static int debug = 0; 19 + static int debug; 20 20 module_param(debug, int, 0644); 21 21 MODULE_PARM_DESC(debug, "enable verbose debug messages"); 22 22
+1 -1
drivers/media/video/tea6415c.c
··· 33 33 34 34 #include "tea6415c.h" 35 35 36 - static int debug = 0; /* insmod parameter */ 36 + static int debug; /* insmod parameter */ 37 37 module_param(debug, int, 0644); 38 38 MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 39 39 #define dprintk(args...) \
+1 -1
drivers/media/video/tea6420.c
··· 33 33 34 34 #include "tea6420.h" 35 35 36 - static int debug = 0; /* insmod parameter */ 36 + static int debug; /* insmod parameter */ 37 37 module_param(debug, int, 0644); 38 38 MODULE_PARM_DESC(debug, "Turn on/off device debugging (default:off)."); 39 39 #define dprintk(args...) \
+3 -3
drivers/media/video/tuner-core.c
··· 68 68 I2C_CLIENT_INSMOD; 69 69 70 70 /* insmod options used at init time => read/only */ 71 - static unsigned int addr = 0; 72 - static unsigned int no_autodetect = 0; 73 - static unsigned int show_i2c = 0; 71 + static unsigned int addr; 72 + static unsigned int no_autodetect; 73 + static unsigned int show_i2c; 74 74 75 75 /* insmod options used at runtime => read/write */ 76 76 static int tuner_debug;
+4 -4
drivers/media/video/tvaudio.c
··· 38 38 /* ---------------------------------------------------------------------- */ 39 39 /* insmod args */ 40 40 41 - static int debug = 0; /* insmod parameter */ 41 + static int debug; /* insmod parameter */ 42 42 module_param(debug, int, 0644); 43 43 44 44 MODULE_DESCRIPTION("device driver for various i2c TV sound decoder / audiomux chips"); ··· 1235 1235 static int tda9855 = 1; 1236 1236 static int tda9873 = 1; 1237 1237 static int tda9874a = 1; 1238 - static int tea6300 = 0; /* address clash with msp34xx */ 1239 - static int tea6320 = 0; /* address clash with msp34xx */ 1238 + static int tea6300; /* default 0 - address clash with msp34xx */ 1239 + static int tea6320; /* default 0 - address clash with msp34xx */ 1240 1240 static int tea6420 = 1; 1241 1241 static int pic16c54 = 1; 1242 - static int ta8874z = 0; /* address clash with tda9840 */ 1242 + static int ta8874z; /* default 0 - address clash with tda9840 */ 1243 1243 1244 1244 module_param(tda8425, int, 0444); 1245 1245 module_param(tda9840, int, 0444);
+1 -1
drivers/media/video/tvp5150.c
··· 27 27 28 28 I2C_CLIENT_INSMOD; 29 29 30 - static int debug = 0; 30 + static int debug; 31 31 module_param(debug, int, 0); 32 32 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 33 33
+1 -1
drivers/media/video/usbvideo/ibmcam.c
··· 121 121 122 122 /* 01.01.08 - Added for RCA video in support -LO */ 123 123 /* Settings for camera model 3 */ 124 - static int init_model3_input = 0; 124 + static int init_model3_input; 125 125 126 126 module_param(debug, int, 0); 127 127 MODULE_PARM_DESC(debug, "Debug level: 0-9 (default=0)");
+1 -1
drivers/media/video/usbvideo/konicawc.c
··· 61 61 } 62 62 #else 63 63 #define DEBUG(n, arg...) 64 - static const int debug = 0; 64 + static const int debug; 65 65 #endif 66 66 67 67
+1 -1
drivers/media/video/usbvideo/quickcam_messenger.c
··· 50 50 } 51 51 #else 52 52 #define DEBUG(n, arg...) 53 - static const int debug = 0; 53 + static const int debug; 54 54 #endif 55 55 56 56 #define DRIVER_VERSION "v0.01"
+2 -2
drivers/media/video/usbvideo/ultracam.c
··· 28 28 29 29 static struct usbvideo *cams = NULL; 30 30 31 - static int debug = 0; 31 + static int debug; 32 32 33 - static int flags = 0; /* FLAGS_DISPLAY_HINTS | FLAGS_OVERLAY_STATS; */ 33 + static int flags; /* FLAGS_DISPLAY_HINTS | FLAGS_OVERLAY_STATS; */ 34 34 35 35 static const int min_canvasWidth = 8; 36 36 static const int min_canvasHeight = 4;
+1 -1
drivers/media/video/usbvideo/usbvideo.c
··· 522 522 struct usbvideo_frame *frame; 523 523 int num_cell = 0; 524 524 int scan_length = 0; 525 - static int num_pass = 0; 525 + static int num_pass; 526 526 527 527 if (uvd == NULL) { 528 528 err("%s: uvd == NULL", __FUNCTION__);
+8 -6
drivers/media/video/usbvision/usbvision-core.c
··· 53 53 54 54 #include "usbvision.h" 55 55 56 - static unsigned int core_debug = 0; 56 + static unsigned int core_debug; 57 57 module_param(core_debug,int,0644); 58 58 MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); 59 59 60 - static unsigned int force_testpattern = 0; 60 + static unsigned int force_testpattern; 61 61 module_param(force_testpattern,int,0644); 62 62 MODULE_PARM_DESC(force_testpattern,"enable test pattern display [core]"); 63 63 64 - static int adjustCompression = 1; // Set the compression to be adaptive 64 + static int adjustCompression = 1; /* Set the compression to be adaptive */ 65 65 module_param(adjustCompression, int, 0444); 66 66 MODULE_PARM_DESC(adjustCompression, " Set the ADPCM compression for the device. Default: 1 (On)"); 67 67 68 - static int SwitchSVideoInput = 0; // To help people with Black and White output with using s-video input. Some cables and input device are wired differently. 68 + /* To help people with Black and White output with using s-video input. 69 + * Some cables and input device are wired differently. */ 70 + static int SwitchSVideoInput; 69 71 module_param(SwitchSVideoInput, int, 0444); 70 72 MODULE_PARM_DESC(SwitchSVideoInput, " Set the S-Video input. Some cables and input device are wired differently. Default: 0 (Off)"); 71 73 ··· 420 418 unsigned char *f; 421 419 int num_cell = 0; 422 420 int scan_length = 0; 423 - static int num_pass = 0; 421 + static int num_pass; 424 422 425 423 if (usbvision == NULL) { 426 424 printk(KERN_ERR "%s: usbvision == NULL\n", proc); ··· 1432 1430 } 1433 1431 #if ENABLE_HEXDUMP 1434 1432 if (totlen > 0) { 1435 - static int foo = 0; 1433 + static int foo; 1436 1434 if (foo < 1) { 1437 1435 printk(KERN_DEBUG "+%d.\n", usbvision->scratchlen); 1438 1436 usbvision_hexdump(data0, (totlen > 64) ? 64 : totlen);
+1 -1
drivers/media/video/usbvision/usbvision-i2c.c
··· 40 40 41 41 #define DBG_I2C 1<<0 42 42 43 - static int i2c_debug = 0; 43 + static int i2c_debug; 44 44 45 45 module_param (i2c_debug, int, 0644); // debug_i2c_usb mode of the device driver 46 46 MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
+2 -2
drivers/media/video/usbvision/usbvision-video.c
··· 115 115 116 116 117 117 /* sequential number of usbvision device */ 118 - static int usbvision_nr = 0; 118 + static int usbvision_nr; 119 119 120 120 static struct usbvision_v4l2_format_st usbvision_v4l2_format[] = { 121 121 { 1, 1, 8, V4L2_PIX_FMT_GREY , "GREY" }, ··· 135 135 /* Set the default format for ISOC endpoint */ 136 136 static int isocMode = ISOC_MODE_COMPRESS; 137 137 /* Set the default Debug Mode of the device driver */ 138 - static int video_debug = 0; 138 + static int video_debug; 139 139 /* Set the default device to power on at startup */ 140 140 static int PowerOnAtOpen = 1; 141 141 /* Sequential Number of Video Device */
+1 -1
drivers/media/video/v4l1-compat.c
··· 39 39 #include <linux/kmod.h> 40 40 #endif 41 41 42 - static unsigned int debug = 0; 42 + static unsigned int debug; 43 43 module_param(debug, int, 0644); 44 44 MODULE_PARM_DESC(debug,"enable debug messages"); 45 45 MODULE_AUTHOR("Bill Dirks");
+1 -1
drivers/media/video/videobuf-dma-sg.c
··· 39 39 #define MAGIC_CHECK(is,should) if (unlikely((is) != (should))) \ 40 40 { printk(KERN_ERR "magic mismatch: %x (expected %x)\n",is,should); BUG(); } 41 41 42 - static int debug = 0; 42 + static int debug; 43 43 module_param(debug, int, 0644); 44 44 45 45 MODULE_DESCRIPTION("helper module to manage video4linux pci dma sg buffers");
+1 -1
drivers/media/video/videobuf-dvb.c
··· 30 30 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); 31 31 MODULE_LICENSE("GPL"); 32 32 33 - static unsigned int debug = 0; 33 + static unsigned int debug; 34 34 module_param(debug, int, 0644); 35 35 MODULE_PARM_DESC(debug,"enable debug messages"); 36 36
+1 -1
drivers/media/video/videobuf-vmalloc.c
··· 33 33 #define MAGIC_CHECK(is,should) if (unlikely((is) != (should))) \ 34 34 { printk(KERN_ERR "magic mismatch: %x (expected %x)\n",is,should); BUG(); } 35 35 36 - static int debug = 0; 36 + static int debug; 37 37 module_param(debug, int, 0644); 38 38 39 39 MODULE_DESCRIPTION("helper module to manage video4linux vmalloc buffers");
+2 -2
drivers/media/video/videocodec.c
··· 44 44 45 45 #include "videocodec.h" 46 46 47 - static int debug = 0; 47 + static int debug; 48 48 module_param(debug, int, 0); 49 49 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 50 50 ··· 325 325 /* ============ */ 326 326 327 327 static char *videocodec_buf = NULL; 328 - static int videocodec_bufsize = 0; 328 + static int videocodec_bufsize; 329 329 330 330 static int 331 331 videocodec_build_table (void)
+5 -5
drivers/media/video/vino.c
··· 333 333 * 334 334 * Use non-zero value to enable conversion. 335 335 */ 336 - static int vino_pixel_conversion = 0; 336 + static int vino_pixel_conversion; 337 337 338 338 module_param_named(pixelconv, vino_pixel_conversion, int, 0); 339 339 ··· 4370 4370 4371 4371 /* Initialization and cleanup */ 4372 4372 4373 - // __initdata 4374 - static int vino_init_stage = 0; 4373 + /* __initdata */ 4374 + static int vino_init_stage; 4375 4375 4376 4376 static const struct file_operations vino_fops = { 4377 4377 .owner = THIS_MODULE, ··· 4385 4385 4386 4386 static struct video_device v4l_device_template = { 4387 4387 .name = "NOT SET", 4388 - //.type = VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE | 4389 - // VID_TYPE_CLIPPING | VID_TYPE_SCALES, VID_TYPE_OVERLAY 4388 + /*.type = VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE | */ 4389 + /* VID_TYPE_CLIPPING | VID_TYPE_SCALES, VID_TYPE_OVERLAY */ 4390 4390 .fops = &vino_fops, 4391 4391 .minor = -1, 4392 4392 };
+1 -1
drivers/media/video/vpx3220.c
··· 40 40 #define I2C_VPX3220 0x86 41 41 #define VPX3220_DEBUG KERN_DEBUG "vpx3220: " 42 42 43 - static int debug = 0; 43 + static int debug; 44 44 module_param(debug, int, 0); 45 45 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 46 46
+2 -2
drivers/media/video/w9966.c
··· 61 61 #include <media/v4l2-common.h> 62 62 #include <linux/parport.h> 63 63 64 - //#define DEBUG // Undef me for production 64 + /*#define DEBUG*/ /* Undef me for production */ 65 65 66 66 #ifdef DEBUG 67 67 #define DPRINTF(x, a...) printk(KERN_DEBUG "W9966: %s(): "x, __FUNCTION__ , ##a) ··· 134 134 \tEg: >pardev=parport3,aggressive,parport2,parport1< would assign\n\ 135 135 \tcam 1 to parport3 and search every parport for cam 2 etc..."); 136 136 137 - static int parmode = 0; 137 + static int parmode; 138 138 module_param(parmode, int, 0); 139 139 MODULE_PARM_DESC(parmode, "parmode: transfer mode (0=auto, 1=ecp, 2=epp"); 140 140
+1 -1
drivers/media/video/w9968cf.c
··· 3481 3481 enum w9968cf_model_id mod_id; 3482 3482 struct list_head* ptr; 3483 3483 u8 sc = 0; /* number of simultaneous cameras */ 3484 - static unsigned short dev_nr = 0; /* we are handling device number n */ 3484 + static unsigned short dev_nr; /* 0 - we are handling device number n */ 3485 3485 3486 3486 if (le16_to_cpu(udev->descriptor.idVendor) == winbond_id_table[0].idVendor && 3487 3487 le16_to_cpu(udev->descriptor.idProduct) == winbond_id_table[0].idProduct)
+1 -1
drivers/media/video/zc0301/zc0301_core.c
··· 1939 1939 { 1940 1940 struct usb_device *udev = interface_to_usbdev(intf); 1941 1941 struct zc0301_device* cam; 1942 - static unsigned int dev_nr = 0; 1942 + static unsigned int dev_nr; 1943 1943 unsigned int i; 1944 1944 int err = 0; 1945 1945
+3 -3
drivers/media/video/zoran_card.c
··· 83 83 or set in in a VIDIOCSFBUF ioctl 84 84 */ 85 85 86 - static unsigned long vidmem = 0; /* Video memory base address */ 86 + static unsigned long vidmem; /* default = 0 - Video memory base address */ 87 87 module_param(vidmem, ulong, 0444); 88 88 MODULE_PARM_DESC(vidmem, "Default video memory base address"); 89 89 ··· 91 91 Default input and video norm at startup of the driver. 92 92 */ 93 93 94 - static unsigned int default_input = 0; /* 0=Composite, 1=S-Video */ 94 + static unsigned int default_input; /* default 0 = Composite, 1 = S-Video */ 95 95 module_param(default_input, uint, 0444); 96 96 MODULE_PARM_DESC(default_input, 97 97 "Default input (0=Composite, 1=S-Video, 2=Internal)"); ··· 101 101 MODULE_PARM_DESC(default_mux, 102 102 "Default 6 Eyes mux setting (Input selection)"); 103 103 104 - static int default_norm = 0; /* 0=PAL, 1=NTSC 2=SECAM */ 104 + static int default_norm; /* default 0 = PAL, 1 = NTSC 2 = SECAM */ 105 105 module_param(default_norm, int, 0444); 106 106 MODULE_PARM_DESC(default_norm, "Default norm (0=PAL, 1=NTSC, 2=SECAM)"); 107 107
+3 -2
drivers/media/video/zoran_device.c
··· 60 60 61 61 extern const struct zoran_format zoran_formats[]; 62 62 63 - static int lml33dpath = 0; /* 1 will use digital path in capture 63 + static int lml33dpath; /* default = 0 64 + * 1 will use digital path in capture 64 65 * mode instead of analog. It can be 65 66 * used for picture adjustments using 66 67 * tool like xawtv while watching image ··· 988 987 zr36057_enable_jpg (struct zoran *zr, 989 988 enum zoran_codec_mode mode) 990 989 { 991 - static int zero = 0; 990 + static int zero; 992 991 static int one = 1; 993 992 struct vfe_settings cap; 994 993 int field_size =
+1 -1
drivers/media/video/zoran_driver.c
··· 205 205 extern int jpg_bufsize; 206 206 extern int pass_through; 207 207 208 - static int lock_norm = 0; /* 1=Don't change TV standard (norm) */ 208 + static int lock_norm; /* 0 = default 1 = Don't change TV standard (norm) */ 209 209 module_param(lock_norm, int, 0644); 210 210 MODULE_PARM_DESC(lock_norm, "Prevent norm changes (1 = ignore, >1 = fail)"); 211 211
+2 -3
drivers/media/video/zr36016.c
··· 55 55 #define MAX_CODECS 20 56 56 57 57 /* amount of chips attached via this driver */ 58 - static int zr36016_codecs = 0; 58 + static int zr36016_codecs; 59 59 60 60 /* debugging is available via module parameter */ 61 - 62 - static int debug = 0; 61 + static int debug; 63 62 module_param(debug, int, 0); 64 63 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 65 64
+2 -3
drivers/media/video/zr36050.c
··· 52 52 #define MAX_CODECS 20 53 53 54 54 /* amount of chips attached via this driver */ 55 - static int zr36050_codecs = 0; 55 + static int zr36050_codecs; 56 56 57 57 /* debugging is available via module parameter */ 58 - 59 - static int debug = 0; 58 + static int debug; 60 59 module_param(debug, int, 0); 61 60 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 62 61
+3 -3
drivers/media/video/zr36060.c
··· 52 52 #define MAX_CODECS 20 53 53 54 54 /* amount of chips attached via this driver */ 55 - static int zr36060_codecs = 0; 55 + static int zr36060_codecs; 56 56 57 - static int low_bitrate = 0; 57 + static int low_bitrate; 58 58 module_param(low_bitrate, bool, 0); 59 59 MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); 60 60 61 61 /* debugging is available via module parameter */ 62 - static int debug = 0; 62 + static int debug; 63 63 module_param(debug, int, 0); 64 64 MODULE_PARM_DESC(debug, "Debug level (0-4)"); 65 65
+2 -2
drivers/media/video/zr364xx.c
··· 62 62 63 63 64 64 /* Module parameters */ 65 - static int debug = 0; 66 - static int mode = 0; 65 + static int debug; 66 + static int mode; 67 67 68 68 69 69 /* Module parameters interface */