diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/media/video | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/media/video')
32 files changed, 44 insertions, 44 deletions
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c index cd8ff0473184..fda32f52554a 100644 --- a/drivers/media/video/c-qcam.c +++ b/drivers/media/video/c-qcam.c | |||
@@ -72,7 +72,7 @@ struct qcam { | |||
72 | 72 | ||
73 | static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; | 73 | static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; |
74 | static int probe = 2; | 74 | static int probe = 2; |
75 | static int force_rgb; | 75 | static bool force_rgb; |
76 | static int video_nr = -1; | 76 | static int video_nr = -1; |
77 | 77 | ||
78 | /* FIXME: parport=auto would never have worked, surely? --RR */ | 78 | /* FIXME: parport=auto would never have worked, surely? --RR */ |
diff --git a/drivers/media/video/cs5345.c b/drivers/media/video/cs5345.c index 5909f2557ab4..1d64af9adf71 100644 --- a/drivers/media/video/cs5345.c +++ b/drivers/media/video/cs5345.c | |||
@@ -31,7 +31,7 @@ MODULE_DESCRIPTION("i2c device driver for cs5345 Audio ADC"); | |||
31 | MODULE_AUTHOR("Hans Verkuil"); | 31 | MODULE_AUTHOR("Hans Verkuil"); |
32 | MODULE_LICENSE("GPL"); | 32 | MODULE_LICENSE("GPL"); |
33 | 33 | ||
34 | static int debug; | 34 | static bool debug; |
35 | 35 | ||
36 | module_param(debug, bool, 0644); | 36 | module_param(debug, bool, 0644); |
37 | 37 | ||
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c index d93e5ab45fd3..51c5b9ad67d8 100644 --- a/drivers/media/video/cs53l32a.c +++ b/drivers/media/video/cs53l32a.c | |||
@@ -35,7 +35,7 @@ MODULE_DESCRIPTION("i2c device driver for cs53l32a Audio ADC"); | |||
35 | MODULE_AUTHOR("Martin Vaughan"); | 35 | MODULE_AUTHOR("Martin Vaughan"); |
36 | MODULE_LICENSE("GPL"); | 36 | MODULE_LICENSE("GPL"); |
37 | 37 | ||
38 | static int debug; | 38 | static bool debug; |
39 | 39 | ||
40 | module_param(debug, bool, 0644); | 40 | module_param(debug, bool, 0644); |
41 | 41 | ||
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index c6ff32a6137c..349bd9c2aff5 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -75,7 +75,7 @@ static int radio[CX18_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1, | |||
75 | -1, -1, -1, -1, -1, -1, -1, -1 }; | 75 | -1, -1, -1, -1, -1, -1, -1, -1 }; |
76 | static unsigned cardtype_c = 1; | 76 | static unsigned cardtype_c = 1; |
77 | static unsigned tuner_c = 1; | 77 | static unsigned tuner_c = 1; |
78 | static unsigned radio_c = 1; | 78 | static bool radio_c = 1; |
79 | static char pal[] = "--"; | 79 | static char pal[] = "--"; |
80 | static char secam[] = "--"; | 80 | static char secam[] = "--"; |
81 | static char ntsc[] = "-"; | 81 | static char ntsc[] = "-"; |
diff --git a/drivers/media/video/cx25821/cx25821-alsa.c b/drivers/media/video/cx25821/cx25821-alsa.c index 09e99de5fd21..58be4f3bb3cb 100644 --- a/drivers/media/video/cx25821/cx25821-alsa.c +++ b/drivers/media/video/cx25821/cx25821-alsa.c | |||
@@ -102,7 +102,7 @@ struct cx25821_audio_dev { | |||
102 | 102 | ||
103 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 103 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
104 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 104 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
105 | static int enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 }; | 105 | static bool enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 }; |
106 | 106 | ||
107 | module_param_array(enable, bool, NULL, 0444); | 107 | module_param_array(enable, bool, NULL, 0444); |
108 | MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled."); | 108 | MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled."); |
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index 68d1240f493c..04bf6627d362 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c | |||
@@ -96,7 +96,7 @@ typedef struct cx88_audio_dev snd_cx88_card_t; | |||
96 | 96 | ||
97 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 97 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
98 | static const char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | 98 | static const char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
99 | static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; | 99 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; |
100 | 100 | ||
101 | module_param_array(enable, bool, NULL, 0444); | 101 | module_param_array(enable, bool, NULL, 0444); |
102 | MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled."); | 102 | MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled."); |
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c index 9fe3816b2aa0..0c4493675438 100644 --- a/drivers/media/video/gspca/m5602/m5602_core.c +++ b/drivers/media/video/gspca/m5602/m5602_core.c | |||
@@ -27,8 +27,8 @@ | |||
27 | 27 | ||
28 | /* Kernel module parameters */ | 28 | /* Kernel module parameters */ |
29 | int force_sensor; | 29 | int force_sensor; |
30 | static int dump_bridge; | 30 | static bool dump_bridge; |
31 | int dump_sensor; | 31 | bool dump_sensor; |
32 | 32 | ||
33 | static const struct usb_device_id m5602_table[] = { | 33 | static const struct usb_device_id m5602_table[] = { |
34 | {USB_DEVICE(0x0402, 0x5602)}, | 34 | {USB_DEVICE(0x0402, 0x5602)}, |
diff --git a/drivers/media/video/gspca/m5602/m5602_mt9m111.h b/drivers/media/video/gspca/m5602/m5602_mt9m111.h index b1f0c492036a..8c672b5c8c6a 100644 --- a/drivers/media/video/gspca/m5602/m5602_mt9m111.h +++ b/drivers/media/video/gspca/m5602/m5602_mt9m111.h | |||
@@ -106,7 +106,7 @@ | |||
106 | 106 | ||
107 | /* Kernel module parameters */ | 107 | /* Kernel module parameters */ |
108 | extern int force_sensor; | 108 | extern int force_sensor; |
109 | extern int dump_sensor; | 109 | extern bool dump_sensor; |
110 | 110 | ||
111 | int mt9m111_probe(struct sd *sd); | 111 | int mt9m111_probe(struct sd *sd); |
112 | int mt9m111_init(struct sd *sd); | 112 | int mt9m111_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_ov7660.h b/drivers/media/video/gspca/m5602/m5602_ov7660.h index 2efd607987ec..2b6a13b508f7 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov7660.h +++ b/drivers/media/video/gspca/m5602/m5602_ov7660.h | |||
@@ -86,7 +86,7 @@ | |||
86 | 86 | ||
87 | /* Kernel module parameters */ | 87 | /* Kernel module parameters */ |
88 | extern int force_sensor; | 88 | extern int force_sensor; |
89 | extern int dump_sensor; | 89 | extern bool dump_sensor; |
90 | 90 | ||
91 | int ov7660_probe(struct sd *sd); | 91 | int ov7660_probe(struct sd *sd); |
92 | int ov7660_init(struct sd *sd); | 92 | int ov7660_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.h b/drivers/media/video/gspca/m5602/m5602_ov9650.h index da9a129b739d..f7aa5bf68983 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov9650.h +++ b/drivers/media/video/gspca/m5602/m5602_ov9650.h | |||
@@ -135,7 +135,7 @@ | |||
135 | 135 | ||
136 | /* Kernel module parameters */ | 136 | /* Kernel module parameters */ |
137 | extern int force_sensor; | 137 | extern int force_sensor; |
138 | extern int dump_sensor; | 138 | extern bool dump_sensor; |
139 | 139 | ||
140 | int ov9650_probe(struct sd *sd); | 140 | int ov9650_probe(struct sd *sd); |
141 | int ov9650_init(struct sd *sd); | 141 | int ov9650_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_po1030.h b/drivers/media/video/gspca/m5602/m5602_po1030.h index 338359596398..81a2bcb88fe3 100644 --- a/drivers/media/video/gspca/m5602/m5602_po1030.h +++ b/drivers/media/video/gspca/m5602/m5602_po1030.h | |||
@@ -147,7 +147,7 @@ | |||
147 | 147 | ||
148 | /* Kernel module parameters */ | 148 | /* Kernel module parameters */ |
149 | extern int force_sensor; | 149 | extern int force_sensor; |
150 | extern int dump_sensor; | 150 | extern bool dump_sensor; |
151 | 151 | ||
152 | int po1030_probe(struct sd *sd); | 152 | int po1030_probe(struct sd *sd); |
153 | int po1030_init(struct sd *sd); | 153 | int po1030_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k4aa.h b/drivers/media/video/gspca/m5602/m5602_s5k4aa.h index 8cc7a3f6da72..8e0035e731c7 100644 --- a/drivers/media/video/gspca/m5602/m5602_s5k4aa.h +++ b/drivers/media/video/gspca/m5602/m5602_s5k4aa.h | |||
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | /* Kernel module parameters */ | 66 | /* Kernel module parameters */ |
67 | extern int force_sensor; | 67 | extern int force_sensor; |
68 | extern int dump_sensor; | 68 | extern bool dump_sensor; |
69 | 69 | ||
70 | int s5k4aa_probe(struct sd *sd); | 70 | int s5k4aa_probe(struct sd *sd); |
71 | int s5k4aa_init(struct sd *sd); | 71 | int s5k4aa_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k83a.h b/drivers/media/video/gspca/m5602/m5602_s5k83a.h index 80a63a236e24..79952247b534 100644 --- a/drivers/media/video/gspca/m5602/m5602_s5k83a.h +++ b/drivers/media/video/gspca/m5602/m5602_s5k83a.h | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | /* Kernel module parameters */ | 42 | /* Kernel module parameters */ |
43 | extern int force_sensor; | 43 | extern int force_sensor; |
44 | extern int dump_sensor; | 44 | extern bool dump_sensor; |
45 | 45 | ||
46 | int s5k83a_probe(struct sd *sd); | 46 | int s5k83a_probe(struct sd *sd); |
47 | int s5k83a_init(struct sd *sd); | 47 | int s5k83a_init(struct sd *sd); |
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx.c b/drivers/media/video/gspca/stv06xx/stv06xx.c index 0ab425fbea9a..6f878f6c6e99 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx.c | |||
@@ -36,8 +36,8 @@ MODULE_AUTHOR("Erik Andrén"); | |||
36 | MODULE_DESCRIPTION("STV06XX USB Camera Driver"); | 36 | MODULE_DESCRIPTION("STV06XX USB Camera Driver"); |
37 | MODULE_LICENSE("GPL"); | 37 | MODULE_LICENSE("GPL"); |
38 | 38 | ||
39 | static int dump_bridge; | 39 | static bool dump_bridge; |
40 | static int dump_sensor; | 40 | static bool dump_sensor; |
41 | 41 | ||
42 | int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) | 42 | int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) |
43 | { | 43 | { |
diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c index 3f1a5b1beeba..e5eb56a5b618 100644 --- a/drivers/media/video/hdpvr/hdpvr-core.c +++ b/drivers/media/video/hdpvr/hdpvr-core.c | |||
@@ -49,7 +49,7 @@ module_param(default_audio_input, uint, S_IRUGO|S_IWUSR); | |||
49 | MODULE_PARM_DESC(default_audio_input, "default audio input: 0=RCA back / " | 49 | MODULE_PARM_DESC(default_audio_input, "default audio input: 0=RCA back / " |
50 | "1=RCA front / 2=S/PDIF"); | 50 | "1=RCA front / 2=S/PDIF"); |
51 | 51 | ||
52 | static int boost_audio; | 52 | static bool boost_audio; |
53 | module_param(boost_audio, bool, S_IRUGO|S_IWUSR); | 53 | module_param(boost_audio, bool, S_IRUGO|S_IWUSR); |
54 | MODULE_PARM_DESC(boost_audio, "boost the audio signal"); | 54 | MODULE_PARM_DESC(boost_audio, "boost the audio signal"); |
55 | 55 | ||
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 41108a9a195e..544af91cbdc1 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -99,7 +99,7 @@ static int i2c_clock_period[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1, | |||
99 | 99 | ||
100 | static unsigned int cardtype_c = 1; | 100 | static unsigned int cardtype_c = 1; |
101 | static unsigned int tuner_c = 1; | 101 | static unsigned int tuner_c = 1; |
102 | static unsigned int radio_c = 1; | 102 | static bool radio_c = 1; |
103 | static unsigned int i2c_clock_period_c = 1; | 103 | static unsigned int i2c_clock_period_c = 1; |
104 | static char pal[] = "---"; | 104 | static char pal[] = "---"; |
105 | static char secam[] = "--"; | 105 | static char secam[] = "--"; |
diff --git a/drivers/media/video/ivtv/ivtvfb.c b/drivers/media/video/ivtv/ivtvfb.c index 6b7c9c823330..d0fbfcf7133d 100644 --- a/drivers/media/video/ivtv/ivtvfb.c +++ b/drivers/media/video/ivtv/ivtvfb.c | |||
@@ -58,7 +58,7 @@ | |||
58 | /* card parameters */ | 58 | /* card parameters */ |
59 | static int ivtvfb_card_id = -1; | 59 | static int ivtvfb_card_id = -1; |
60 | static int ivtvfb_debug = 0; | 60 | static int ivtvfb_debug = 0; |
61 | static int osd_laced; | 61 | static bool osd_laced; |
62 | static int osd_depth; | 62 | static int osd_depth; |
63 | static int osd_upper; | 63 | static int osd_upper; |
64 | static int osd_left; | 64 | static int osd_left; |
diff --git a/drivers/media/video/marvell-ccic/mcam-core.c b/drivers/media/video/marvell-ccic/mcam-core.c index 80ec64d2d6d8..2c8fc0f6d690 100644 --- a/drivers/media/video/marvell-ccic/mcam-core.c +++ b/drivers/media/video/marvell-ccic/mcam-core.c | |||
@@ -51,7 +51,7 @@ static int delivered; | |||
51 | * sense. | 51 | * sense. |
52 | */ | 52 | */ |
53 | 53 | ||
54 | static int alloc_bufs_at_read; | 54 | static bool alloc_bufs_at_read; |
55 | module_param(alloc_bufs_at_read, bool, 0444); | 55 | module_param(alloc_bufs_at_read, bool, 0444); |
56 | MODULE_PARM_DESC(alloc_bufs_at_read, | 56 | MODULE_PARM_DESC(alloc_bufs_at_read, |
57 | "Non-zero value causes DMA buffers to be allocated when the " | 57 | "Non-zero value causes DMA buffers to be allocated when the " |
@@ -73,11 +73,11 @@ MODULE_PARM_DESC(dma_buf_size, | |||
73 | "parameters require larger buffers, an attempt to reallocate " | 73 | "parameters require larger buffers, an attempt to reallocate " |
74 | "will be made."); | 74 | "will be made."); |
75 | #else /* MCAM_MODE_VMALLOC */ | 75 | #else /* MCAM_MODE_VMALLOC */ |
76 | static const int alloc_bufs_at_read = 0; | 76 | static const bool alloc_bufs_at_read = 0; |
77 | static const int n_dma_bufs = 3; /* Used by S/G_PARM */ | 77 | static const int n_dma_bufs = 3; /* Used by S/G_PARM */ |
78 | #endif /* MCAM_MODE_VMALLOC */ | 78 | #endif /* MCAM_MODE_VMALLOC */ |
79 | 79 | ||
80 | static int flip; | 80 | static bool flip; |
81 | module_param(flip, bool, 0444); | 81 | module_param(flip, bool, 0444); |
82 | MODULE_PARM_DESC(flip, | 82 | MODULE_PARM_DESC(flip, |
83 | "If set, the sensor will be instructed to flip the image " | 83 | "If set, the sensor will be instructed to flip the image " |
diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index d0f538857285..d7cd0f633f63 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c | |||
@@ -69,12 +69,12 @@ MODULE_LICENSE("GPL"); | |||
69 | /* module parameters */ | 69 | /* module parameters */ |
70 | static int opmode = OPMODE_AUTO; | 70 | static int opmode = OPMODE_AUTO; |
71 | int msp_debug; /* msp_debug output */ | 71 | int msp_debug; /* msp_debug output */ |
72 | int msp_once; /* no continuous stereo monitoring */ | 72 | bool msp_once; /* no continuous stereo monitoring */ |
73 | int msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), | 73 | bool msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), |
74 | the autoscan seems work well only with FM... */ | 74 | the autoscan seems work well only with FM... */ |
75 | int msp_standard = 1; /* Override auto detect of audio msp_standard, | 75 | int msp_standard = 1; /* Override auto detect of audio msp_standard, |
76 | if needed. */ | 76 | if needed. */ |
77 | int msp_dolby; | 77 | bool msp_dolby; |
78 | 78 | ||
79 | int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual | 79 | int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual |
80 | (msp34xxg only) 0x00a0-0x03c0 */ | 80 | (msp34xxg only) 0x00a0-0x03c0 */ |
diff --git a/drivers/media/video/msp3400-driver.h b/drivers/media/video/msp3400-driver.h index 831e8db4368c..fbe5e0715f93 100644 --- a/drivers/media/video/msp3400-driver.h +++ b/drivers/media/video/msp3400-driver.h | |||
@@ -44,10 +44,10 @@ | |||
44 | 44 | ||
45 | /* module parameters */ | 45 | /* module parameters */ |
46 | extern int msp_debug; | 46 | extern int msp_debug; |
47 | extern int msp_once; | 47 | extern bool msp_once; |
48 | extern int msp_amsound; | 48 | extern bool msp_amsound; |
49 | extern int msp_standard; | 49 | extern int msp_standard; |
50 | extern int msp_dolby; | 50 | extern bool msp_dolby; |
51 | extern int msp_stereo_thresh; | 51 | extern int msp_stereo_thresh; |
52 | 52 | ||
53 | struct msp_state { | 53 | struct msp_state { |
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c index ee0d0b39cd17..0de598bf66bb 100644 --- a/drivers/media/video/omap/omap_vout.c +++ b/drivers/media/video/omap/omap_vout.c | |||
@@ -70,9 +70,9 @@ static u32 video1_numbuffers = 3; | |||
70 | static u32 video2_numbuffers = 3; | 70 | static u32 video2_numbuffers = 3; |
71 | static u32 video1_bufsize = OMAP_VOUT_MAX_BUF_SIZE; | 71 | static u32 video1_bufsize = OMAP_VOUT_MAX_BUF_SIZE; |
72 | static u32 video2_bufsize = OMAP_VOUT_MAX_BUF_SIZE; | 72 | static u32 video2_bufsize = OMAP_VOUT_MAX_BUF_SIZE; |
73 | static u32 vid1_static_vrfb_alloc; | 73 | static bool vid1_static_vrfb_alloc; |
74 | static u32 vid2_static_vrfb_alloc; | 74 | static bool vid2_static_vrfb_alloc; |
75 | static int debug; | 75 | static bool debug; |
76 | 76 | ||
77 | /* Module parameters */ | 77 | /* Module parameters */ |
78 | module_param(video1_numbuffers, uint, S_IRUGO); | 78 | module_param(video1_numbuffers, uint, S_IRUGO); |
diff --git a/drivers/media/video/omap/omap_vout_vrfb.c b/drivers/media/video/omap/omap_vout_vrfb.c index ebebcac49225..4be26abf6cea 100644 --- a/drivers/media/video/omap/omap_vout_vrfb.c +++ b/drivers/media/video/omap/omap_vout_vrfb.c | |||
@@ -84,7 +84,7 @@ void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) | |||
84 | } | 84 | } |
85 | 85 | ||
86 | int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, | 86 | int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, |
87 | u32 static_vrfb_allocation) | 87 | bool static_vrfb_allocation) |
88 | { | 88 | { |
89 | int ret = 0, i, j; | 89 | int ret = 0, i, j; |
90 | struct omap_vout_device *vout; | 90 | struct omap_vout_device *vout; |
diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c index 8aa058531280..6a564964853a 100644 --- a/drivers/media/video/ov7670.c +++ b/drivers/media/video/ov7670.c | |||
@@ -25,7 +25,7 @@ MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>"); | |||
25 | MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); | 25 | MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); |
26 | MODULE_LICENSE("GPL"); | 26 | MODULE_LICENSE("GPL"); |
27 | 27 | ||
28 | static int debug; | 28 | static bool debug; |
29 | module_param(debug, bool, 0644); | 29 | module_param(debug, bool, 0644); |
30 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 30 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
31 | 31 | ||
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index 5cfdbc78b918..0ef5484696b6 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c | |||
@@ -57,7 +57,7 @@ MODULE_AUTHOR( "Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, " | |||
57 | "Hans Verkuil, Mauro Carvalho Chehab"); | 57 | "Hans Verkuil, Mauro Carvalho Chehab"); |
58 | MODULE_LICENSE("GPL"); | 58 | MODULE_LICENSE("GPL"); |
59 | 59 | ||
60 | static int debug; | 60 | static bool debug; |
61 | module_param(debug, bool, 0644); | 61 | module_param(debug, bool, 0644); |
62 | 62 | ||
63 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 63 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
diff --git a/drivers/media/video/stk-webcam.c b/drivers/media/video/stk-webcam.c index b7fb5a5cad7e..3c61aec517ac 100644 --- a/drivers/media/video/stk-webcam.c +++ b/drivers/media/video/stk-webcam.c | |||
@@ -38,11 +38,11 @@ | |||
38 | #include "stk-webcam.h" | 38 | #include "stk-webcam.h" |
39 | 39 | ||
40 | 40 | ||
41 | static int hflip = 1; | 41 | static bool hflip = 1; |
42 | module_param(hflip, bool, 0444); | 42 | module_param(hflip, bool, 0444); |
43 | MODULE_PARM_DESC(hflip, "Horizontal image flip (mirror). Defaults to 1"); | 43 | MODULE_PARM_DESC(hflip, "Horizontal image flip (mirror). Defaults to 1"); |
44 | 44 | ||
45 | static int vflip = 1; | 45 | static bool vflip = 1; |
46 | module_param(vflip, bool, 0444); | 46 | module_param(vflip, bool, 0444); |
47 | MODULE_PARM_DESC(vflip, "Vertical image flip. Defaults to 1"); | 47 | MODULE_PARM_DESC(vflip, "Vertical image flip. Defaults to 1"); |
48 | 48 | ||
diff --git a/drivers/media/video/tm6000/tm6000-alsa.c b/drivers/media/video/tm6000/tm6000-alsa.c index 7d675c72fd47..bb2047c10358 100644 --- a/drivers/media/video/tm6000/tm6000-alsa.c +++ b/drivers/media/video/tm6000/tm6000-alsa.c | |||
@@ -42,7 +42,7 @@ | |||
42 | 42 | ||
43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | 43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
44 | 44 | ||
45 | static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; | 45 | static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; |
46 | 46 | ||
47 | module_param_array(enable, bool, NULL, 0444); | 47 | module_param_array(enable, bool, NULL, 0444); |
48 | MODULE_PARM_DESC(enable, "Enable tm6000x soundcard. default enabled."); | 48 | MODULE_PARM_DESC(enable, "Enable tm6000x soundcard. default enabled."); |
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c index 926f03931156..dd26cacd0556 100644 --- a/drivers/media/video/tvp514x.c +++ b/drivers/media/video/tvp514x.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #define LOCK_RETRY_DELAY (200) | 52 | #define LOCK_RETRY_DELAY (200) |
53 | 53 | ||
54 | /* Debug functions */ | 54 | /* Debug functions */ |
55 | static int debug; | 55 | static bool debug; |
56 | module_param(debug, bool, 0644); | 56 | module_param(debug, bool, 0644); |
57 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 57 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
58 | 58 | ||
diff --git a/drivers/media/video/tvp7002.c b/drivers/media/video/tvp7002.c index 7875e80cb2ff..236c559d5f51 100644 --- a/drivers/media/video/tvp7002.c +++ b/drivers/media/video/tvp7002.c | |||
@@ -63,7 +63,7 @@ MODULE_LICENSE("GPL"); | |||
63 | #define TVP7002_CL_MASK 0x0f | 63 | #define TVP7002_CL_MASK 0x0f |
64 | 64 | ||
65 | /* Debug functions */ | 65 | /* Debug functions */ |
66 | static int debug; | 66 | static bool debug; |
67 | module_param(debug, bool, 0644); | 67 | module_param(debug, bool, 0644); |
68 | MODULE_PARM_DESC(debug, "Debug level (0-2)"); | 68 | MODULE_PARM_DESC(debug, "Debug level (0-2)"); |
69 | 69 | ||
diff --git a/drivers/media/video/upd64083.c b/drivers/media/video/upd64083.c index 9bbe61700fd5..65d065aa6091 100644 --- a/drivers/media/video/upd64083.c +++ b/drivers/media/video/upd64083.c | |||
@@ -34,7 +34,7 @@ MODULE_DESCRIPTION("uPD64083 driver"); | |||
34 | MODULE_AUTHOR("T. Adachi, Takeru KOMORIYA, Hans Verkuil"); | 34 | MODULE_AUTHOR("T. Adachi, Takeru KOMORIYA, Hans Verkuil"); |
35 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
36 | 36 | ||
37 | static int debug; | 37 | static bool debug; |
38 | module_param(debug, bool, 0644); | 38 | module_param(debug, bool, 0644); |
39 | 39 | ||
40 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 40 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
diff --git a/drivers/media/video/via-camera.c b/drivers/media/video/via-camera.c index cbf13d09b4ac..bfae41ba53c3 100644 --- a/drivers/media/video/via-camera.c +++ b/drivers/media/video/via-camera.c | |||
@@ -34,13 +34,13 @@ MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>"); | |||
34 | MODULE_DESCRIPTION("VIA framebuffer-based camera controller driver"); | 34 | MODULE_DESCRIPTION("VIA framebuffer-based camera controller driver"); |
35 | MODULE_LICENSE("GPL"); | 35 | MODULE_LICENSE("GPL"); |
36 | 36 | ||
37 | static int flip_image; | 37 | static bool flip_image; |
38 | module_param(flip_image, bool, 0444); | 38 | module_param(flip_image, bool, 0444); |
39 | MODULE_PARM_DESC(flip_image, | 39 | MODULE_PARM_DESC(flip_image, |
40 | "If set, the sensor will be instructed to flip the image " | 40 | "If set, the sensor will be instructed to flip the image " |
41 | "vertically."); | 41 | "vertically."); |
42 | 42 | ||
43 | static int override_serial; | 43 | static bool override_serial; |
44 | module_param(override_serial, bool, 0444); | 44 | module_param(override_serial, bool, 0444); |
45 | MODULE_PARM_DESC(override_serial, | 45 | MODULE_PARM_DESC(override_serial, |
46 | "The camera driver will normally refuse to load if " | 46 | "The camera driver will normally refuse to load if " |
diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c index e8a27844bf39..e86173bd1327 100644 --- a/drivers/media/video/zoran/zoran_device.c +++ b/drivers/media/video/zoran/zoran_device.c | |||
@@ -57,7 +57,7 @@ | |||
57 | ZR36057_ISR_GIRQ1 | \ | 57 | ZR36057_ISR_GIRQ1 | \ |
58 | ZR36057_ISR_JPEGRepIRQ ) | 58 | ZR36057_ISR_JPEGRepIRQ ) |
59 | 59 | ||
60 | static int lml33dpath; /* default = 0 | 60 | static bool lml33dpath; /* default = 0 |
61 | * 1 will use digital path in capture | 61 | * 1 will use digital path in capture |
62 | * mode instead of analog. It can be | 62 | * mode instead of analog. It can be |
63 | * used for picture adjustments using | 63 | * used for picture adjustments using |
diff --git a/drivers/media/video/zoran/zr36060.c b/drivers/media/video/zoran/zr36060.c index 5e4f57cbf314..f08546fe2234 100644 --- a/drivers/media/video/zoran/zr36060.c +++ b/drivers/media/video/zoran/zr36060.c | |||
@@ -50,7 +50,7 @@ | |||
50 | /* amount of chips attached via this driver */ | 50 | /* amount of chips attached via this driver */ |
51 | static int zr36060_codecs; | 51 | static int zr36060_codecs; |
52 | 52 | ||
53 | static int low_bitrate; | 53 | static bool low_bitrate; |
54 | module_param(low_bitrate, bool, 0); | 54 | module_param(low_bitrate, bool, 0); |
55 | MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); | 55 | MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); |
56 | 56 | ||