Commit a5ed425c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Mauro Carvalho Chehab

V4L/DVB (3355): removed uneeded init on structs like static int foo=0

- Static vars are equal to zero by default. Removed unnecessary =0 from them,
  saving some data space
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 43ecb9a3
...@@ -542,7 +542,7 @@ static struct pci_driver bt878_pci_driver = { ...@@ -542,7 +542,7 @@ static struct pci_driver bt878_pci_driver = {
.remove = bt878_remove, .remove = bt878_remove,
}; };
static int bt878_pci_driver_registered = 0; static int bt878_pci_driver_registered;
/*******************************/ /*******************************/
/* Module management functions */ /* Module management functions */
......
...@@ -81,7 +81,7 @@ static int adac = DVB_ADAC_TI; ...@@ -81,7 +81,7 @@ static int adac = DVB_ADAC_TI;
static int hw_sections; static int hw_sections;
static int rgb_on; static int rgb_on;
static int volume = 255; static int volume = 255;
static int budgetpatch = 0; static int budgetpatch;
module_param_named(debug, av7110_debug, int, 0644); module_param_named(debug, av7110_debug, int, 0644);
MODULE_PARM_DESC(debug, "debug level (bitmask, default 0)"); MODULE_PARM_DESC(debug, "debug level (bitmask, default 0)");
...@@ -103,7 +103,7 @@ MODULE_PARM_DESC(budgetpatch, "use budget-patch hardware modification: default 0 ...@@ -103,7 +103,7 @@ MODULE_PARM_DESC(budgetpatch, "use budget-patch hardware modification: default 0
static void restart_feeds(struct av7110 *av7110); static void restart_feeds(struct av7110 *av7110);
static int av7110_num = 0; static int av7110_num;
#define FE_FUNC_OVERRIDE(fe_func, av7110_copy, av7110_func) \ #define FE_FUNC_OVERRIDE(fe_func, av7110_copy, av7110_func) \
{\ {\
......
...@@ -43,7 +43,7 @@ static unsigned short normal_i2c[] = { I2C_BT832_ALT1>>1, I2C_BT832_ALT2>>1, ...@@ -43,7 +43,7 @@ static unsigned short normal_i2c[] = { I2C_BT832_ALT1>>1, I2C_BT832_ALT2>>1,
I2C_CLIENT_END }; I2C_CLIENT_END };
I2C_CLIENT_INSMOD; I2C_CLIENT_INSMOD;
int debug = 0; /* debug output */ int debug; /* debug output */
module_param(debug, int, 0644); module_param(debug, int, 0644);
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
......
...@@ -37,7 +37,7 @@ MODULE_DESCRIPTION("some code shared by bttv and cx88xx drivers"); ...@@ -37,7 +37,7 @@ MODULE_DESCRIPTION("some code shared by bttv and cx88xx drivers");
MODULE_AUTHOR("Gerd Knorr"); MODULE_AUTHOR("Gerd Knorr");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static unsigned int debug = 0; static unsigned int debug;
module_param(debug, int, 0644); module_param(debug, int, 0644);
MODULE_PARM_DESC(debug,"debug messages, default is 0 (no)"); MODULE_PARM_DESC(debug,"debug messages, default is 0 (no)");
......
...@@ -92,8 +92,8 @@ static void identify_by_eeprom(struct bttv *btv, ...@@ -92,8 +92,8 @@ static void identify_by_eeprom(struct bttv *btv,
static int __devinit pvr_boot(struct bttv *btv); static int __devinit pvr_boot(struct bttv *btv);
/* config variables */ /* config variables */
static unsigned int triton1=0; static unsigned int triton1;
static unsigned int vsfx=0; static unsigned int vsfx;
static unsigned int latency = UNSET; static unsigned int latency = UNSET;
int no_overlay=-1; int no_overlay=-1;
...@@ -106,7 +106,7 @@ static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; ...@@ -106,7 +106,7 @@ static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL };
#ifdef MODULE #ifdef MODULE
static unsigned int autoload = 1; static unsigned int autoload = 1;
#else #else
static unsigned int autoload = 0; static unsigned int autoload;
#endif #endif
static unsigned int gpiomask = UNSET; static unsigned int gpiomask = UNSET;
static unsigned int audioall = UNSET; static unsigned int audioall = UNSET;
......
...@@ -48,47 +48,46 @@ ...@@ -48,47 +48,46 @@
unsigned int bttv_num; /* number of Bt848s in use */ unsigned int bttv_num; /* number of Bt848s in use */
struct bttv bttvs[BTTV_MAX]; struct bttv bttvs[BTTV_MAX];
unsigned int bttv_debug = 0; unsigned int bttv_debug;
unsigned int bttv_verbose = 1; unsigned int bttv_verbose = 1;
unsigned int bttv_gpio = 0; unsigned int bttv_gpio;
/* config variables */ /* config variables */
#ifdef __BIG_ENDIAN #ifdef __BIG_ENDIAN
static unsigned int bigendian=1; static unsigned int bigendian=1;
#else #else
static unsigned int bigendian=0; static unsigned int bigendian;
#endif #endif
static unsigned int radio[BTTV_MAX]; static unsigned int radio[BTTV_MAX];
static unsigned int irq_debug = 0; static unsigned int irq_debug;
static unsigned int gbuffers = 8; static unsigned int gbuffers = 8;
static unsigned int gbufsize = 0x208000; static unsigned int gbufsize = 0x208000;
static int video_nr = -1; static int video_nr = -1;
static int radio_nr = -1; static int radio_nr = -1;
static int vbi_nr = -1; static int vbi_nr = -1;
static int debug_latency = 0; static int debug_latency;
static unsigned int fdsr = 0; static unsigned int fdsr;
/* options */ /* options */
static unsigned int combfilter = 0; static unsigned int combfilter;
static unsigned int lumafilter = 0; static unsigned int lumafilter;
static unsigned int automute = 1; static unsigned int automute = 1;
static unsigned int chroma_agc = 0; static unsigned int chroma_agc;
static unsigned int adc_crush = 1; static unsigned int adc_crush = 1;
static unsigned int whitecrush_upper = 0xCF; static unsigned int whitecrush_upper = 0xCF;
static unsigned int whitecrush_lower = 0x7F; static unsigned int whitecrush_lower = 0x7F;
static unsigned int vcr_hack = 0; static unsigned int vcr_hack;
static unsigned int irq_iswitch = 0; static unsigned int irq_iswitch;
static unsigned int uv_ratio = 50; static unsigned int uv_ratio = 50;
static unsigned int full_luma_range = 0; static unsigned int full_luma_range;
static unsigned int coring = 0; static unsigned int coring;
extern int no_overlay; extern int no_overlay;
/* API features (turn on/off stuff for testing) */ /* API features (turn on/off stuff for testing) */
static unsigned int v4l2 = 1; static unsigned int v4l2 = 1;
/* insmod args */ /* insmod args */
module_param(bttv_verbose, int, 0644); module_param(bttv_verbose, int, 0644);
module_param(bttv_gpio, int, 0644); module_param(bttv_gpio, int, 0644);
......
...@@ -41,9 +41,9 @@ static struct i2c_client bttv_i2c_client_template; ...@@ -41,9 +41,9 @@ static struct i2c_client bttv_i2c_client_template;
static int attach_inform(struct i2c_client *client); static int attach_inform(struct i2c_client *client);
static int i2c_debug = 0; static int i2c_debug;
static int i2c_hw = 0; static int i2c_hw;
static int i2c_scan = 0; static int i2c_scan;
module_param(i2c_debug, int, 0644); module_param(i2c_debug, int, 0644);
module_param(i2c_hw, int, 0444); module_param(i2c_hw, int, 0444);
module_param(i2c_scan, int, 0444); module_param(i2c_scan, int, 0444);
......
...@@ -43,7 +43,7 @@ MODULE_LICENSE("GPL"); ...@@ -43,7 +43,7 @@ MODULE_LICENSE("GPL");
static unsigned short normal_i2c[] = { 0x88 >> 1, I2C_CLIENT_END }; static unsigned short normal_i2c[] = { 0x88 >> 1, I2C_CLIENT_END };
int cx25840_debug = 0; int cx25840_debug;
module_param_named(debug,cx25840_debug, int, 0644); module_param_named(debug,cx25840_debug, int, 0644);
......
...@@ -116,7 +116,7 @@ MODULE_LICENSE("GPL"); ...@@ -116,7 +116,7 @@ MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("{{Conexant,23881}," MODULE_SUPPORTED_DEVICE("{{Conexant,23881},"
"{{Conexant,23882}," "{{Conexant,23882},"
"{{Conexant,23883}"); "{{Conexant,23883}");
static unsigned int debug = 0; static unsigned int debug;
module_param(debug,int,0644); module_param(debug,int,0644);
MODULE_PARM_DESC(debug,"enable debug messages"); MODULE_PARM_DESC(debug,"enable debug messages");
...@@ -653,7 +653,7 @@ static void snd_cx88_dev_free(snd_card_t * card) ...@@ -653,7 +653,7 @@ static void snd_cx88_dev_free(snd_card_t * card)
* Alsa Constructor - Component probe * Alsa Constructor - Component probe
*/ */
static int devno=0; static int devno;
static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci,
snd_cx88_card_t **rchip) snd_cx88_card_t **rchip)
{ {
......
...@@ -66,12 +66,12 @@ MODULE_LICENSE("GPL"); ...@@ -66,12 +66,12 @@ MODULE_LICENSE("GPL");
/* module parameters */ /* module parameters */
static int opmode = OPMODE_AUTO; static int opmode = OPMODE_AUTO;
int msp_debug = 0; /* msp_debug output */ int msp_debug; /* msp_debug output */
int msp_once = 0; /* no continous stereo monitoring */ int msp_once; /* no continous stereo monitoring */
int msp_amsound = 0; /* hard-wire AM sound at 6.5 Hz (france), int msp_amsound; /* hard-wire AM sound at 6.5 Hz (france),
the autoscan seems work well only with FM... */ the autoscan seems work well only with FM... */
int msp_standard = 1; /* Override auto detect of audio msp_standard, if needed. */ int msp_standard = 1; /* Override auto detect of audio msp_standard, if needed. */
int msp_dolby = 0; int msp_dolby;
int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual
(msp34xxg only) 0x00a0-0x03c0 */ (msp34xxg only) 0x00a0-0x03c0 */
......
...@@ -140,7 +140,7 @@ static int pending_call(struct notifier_block *self, unsigned long state, ...@@ -140,7 +140,7 @@ static int pending_call(struct notifier_block *self, unsigned long state,
return NOTIFY_DONE; return NOTIFY_DONE;
} }
static int pending_registered=0; static int pending_registered;
static struct notifier_block pending_notifier = { static struct notifier_block pending_notifier = {
.notifier_call = pending_call, .notifier_call = pending_call,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment