diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-10-19 03:29:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 12:50:06 -0400 |
commit | 780e312175f688ab5ab6124c91d46fa2b9afe2d2 (patch) | |
tree | 3830f521b82765b0cfa71e7bb1a4a617091d685f /drivers/media/video/gspca/m5602/m5602_ov9650.c | |
parent | 76ad3b684ae6bf43662f8fc57501e4ad0e3b12e8 (diff) |
[media] gspca: Fix coding style issues
The errors were found by checkpatch.pl. Most fixes are:
- remove spaces followed by TAB(s),
- split lines greater than 80 characters,
- move most '{'s from start of line to end of previous line.
(Some '{'s at start of line remain when the '}'s are on the same line)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/m5602/m5602_ov9650.c')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_ov9650.c | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.c b/drivers/media/video/gspca/m5602/m5602_ov9650.c index 069ba0044f8..8ded8b10057 100644 --- a/drivers/media/video/gspca/m5602/m5602_ov9650.c +++ b/drivers/media/video/gspca/m5602/m5602_ov9650.c | |||
@@ -121,8 +121,8 @@ static const struct ctrl ov9650_ctrls[] = { | |||
121 | .minimum = 0x00, | 121 | .minimum = 0x00, |
122 | .maximum = 0x1ff, | 122 | .maximum = 0x1ff, |
123 | .step = 0x4, | 123 | .step = 0x4, |
124 | .default_value = EXPOSURE_DEFAULT, | 124 | .default_value = EXPOSURE_DEFAULT, |
125 | .flags = V4L2_CTRL_FLAG_SLIDER | 125 | .flags = V4L2_CTRL_FLAG_SLIDER |
126 | }, | 126 | }, |
127 | .set = ov9650_set_exposure, | 127 | .set = ov9650_set_exposure, |
128 | .get = ov9650_get_exposure | 128 | .get = ov9650_get_exposure |
@@ -146,13 +146,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
146 | { | 146 | { |
147 | { | 147 | { |
148 | .id = V4L2_CID_RED_BALANCE, | 148 | .id = V4L2_CID_RED_BALANCE, |
149 | .type = V4L2_CTRL_TYPE_INTEGER, | 149 | .type = V4L2_CTRL_TYPE_INTEGER, |
150 | .name = "red balance", | 150 | .name = "red balance", |
151 | .minimum = 0x00, | 151 | .minimum = 0x00, |
152 | .maximum = 0xff, | 152 | .maximum = 0xff, |
153 | .step = 0x1, | 153 | .step = 0x1, |
154 | .default_value = RED_GAIN_DEFAULT, | 154 | .default_value = RED_GAIN_DEFAULT, |
155 | .flags = V4L2_CTRL_FLAG_SLIDER | 155 | .flags = V4L2_CTRL_FLAG_SLIDER |
156 | }, | 156 | }, |
157 | .set = ov9650_set_red_balance, | 157 | .set = ov9650_set_red_balance, |
158 | .get = ov9650_get_red_balance | 158 | .get = ov9650_get_red_balance |
@@ -161,13 +161,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
161 | { | 161 | { |
162 | { | 162 | { |
163 | .id = V4L2_CID_BLUE_BALANCE, | 163 | .id = V4L2_CID_BLUE_BALANCE, |
164 | .type = V4L2_CTRL_TYPE_INTEGER, | 164 | .type = V4L2_CTRL_TYPE_INTEGER, |
165 | .name = "blue balance", | 165 | .name = "blue balance", |
166 | .minimum = 0x00, | 166 | .minimum = 0x00, |
167 | .maximum = 0xff, | 167 | .maximum = 0xff, |
168 | .step = 0x1, | 168 | .step = 0x1, |
169 | .default_value = BLUE_GAIN_DEFAULT, | 169 | .default_value = BLUE_GAIN_DEFAULT, |
170 | .flags = V4L2_CTRL_FLAG_SLIDER | 170 | .flags = V4L2_CTRL_FLAG_SLIDER |
171 | }, | 171 | }, |
172 | .set = ov9650_set_blue_balance, | 172 | .set = ov9650_set_blue_balance, |
173 | .get = ov9650_get_blue_balance | 173 | .get = ov9650_get_blue_balance |
@@ -175,13 +175,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
175 | #define HFLIP_IDX 4 | 175 | #define HFLIP_IDX 4 |
176 | { | 176 | { |
177 | { | 177 | { |
178 | .id = V4L2_CID_HFLIP, | 178 | .id = V4L2_CID_HFLIP, |
179 | .type = V4L2_CTRL_TYPE_BOOLEAN, | 179 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
180 | .name = "horizontal flip", | 180 | .name = "horizontal flip", |
181 | .minimum = 0, | 181 | .minimum = 0, |
182 | .maximum = 1, | 182 | .maximum = 1, |
183 | .step = 1, | 183 | .step = 1, |
184 | .default_value = 0 | 184 | .default_value = 0 |
185 | }, | 185 | }, |
186 | .set = ov9650_set_hflip, | 186 | .set = ov9650_set_hflip, |
187 | .get = ov9650_get_hflip | 187 | .get = ov9650_get_hflip |
@@ -189,13 +189,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
189 | #define VFLIP_IDX 5 | 189 | #define VFLIP_IDX 5 |
190 | { | 190 | { |
191 | { | 191 | { |
192 | .id = V4L2_CID_VFLIP, | 192 | .id = V4L2_CID_VFLIP, |
193 | .type = V4L2_CTRL_TYPE_BOOLEAN, | 193 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
194 | .name = "vertical flip", | 194 | .name = "vertical flip", |
195 | .minimum = 0, | 195 | .minimum = 0, |
196 | .maximum = 1, | 196 | .maximum = 1, |
197 | .step = 1, | 197 | .step = 1, |
198 | .default_value = 0 | 198 | .default_value = 0 |
199 | }, | 199 | }, |
200 | .set = ov9650_set_vflip, | 200 | .set = ov9650_set_vflip, |
201 | .get = ov9650_get_vflip | 201 | .get = ov9650_get_vflip |
@@ -203,13 +203,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
203 | #define AUTO_WHITE_BALANCE_IDX 6 | 203 | #define AUTO_WHITE_BALANCE_IDX 6 |
204 | { | 204 | { |
205 | { | 205 | { |
206 | .id = V4L2_CID_AUTO_WHITE_BALANCE, | 206 | .id = V4L2_CID_AUTO_WHITE_BALANCE, |
207 | .type = V4L2_CTRL_TYPE_BOOLEAN, | 207 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
208 | .name = "auto white balance", | 208 | .name = "auto white balance", |
209 | .minimum = 0, | 209 | .minimum = 0, |
210 | .maximum = 1, | 210 | .maximum = 1, |
211 | .step = 1, | 211 | .step = 1, |
212 | .default_value = 1 | 212 | .default_value = 1 |
213 | }, | 213 | }, |
214 | .set = ov9650_set_auto_white_balance, | 214 | .set = ov9650_set_auto_white_balance, |
215 | .get = ov9650_get_auto_white_balance | 215 | .get = ov9650_get_auto_white_balance |
@@ -217,13 +217,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
217 | #define AUTO_GAIN_CTRL_IDX 7 | 217 | #define AUTO_GAIN_CTRL_IDX 7 |
218 | { | 218 | { |
219 | { | 219 | { |
220 | .id = V4L2_CID_AUTOGAIN, | 220 | .id = V4L2_CID_AUTOGAIN, |
221 | .type = V4L2_CTRL_TYPE_BOOLEAN, | 221 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
222 | .name = "auto gain control", | 222 | .name = "auto gain control", |
223 | .minimum = 0, | 223 | .minimum = 0, |
224 | .maximum = 1, | 224 | .maximum = 1, |
225 | .step = 1, | 225 | .step = 1, |
226 | .default_value = 1 | 226 | .default_value = 1 |
227 | }, | 227 | }, |
228 | .set = ov9650_set_auto_gain, | 228 | .set = ov9650_set_auto_gain, |
229 | .get = ov9650_get_auto_gain | 229 | .get = ov9650_get_auto_gain |
@@ -231,13 +231,13 @@ static const struct ctrl ov9650_ctrls[] = { | |||
231 | #define AUTO_EXPOSURE_IDX 8 | 231 | #define AUTO_EXPOSURE_IDX 8 |
232 | { | 232 | { |
233 | { | 233 | { |
234 | .id = V4L2_CID_EXPOSURE_AUTO, | 234 | .id = V4L2_CID_EXPOSURE_AUTO, |
235 | .type = V4L2_CTRL_TYPE_BOOLEAN, | 235 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
236 | .name = "auto exposure", | 236 | .name = "auto exposure", |
237 | .minimum = 0, | 237 | .minimum = 0, |
238 | .maximum = 1, | 238 | .maximum = 1, |
239 | .step = 1, | 239 | .step = 1, |
240 | .default_value = 1 | 240 | .default_value = 1 |
241 | }, | 241 | }, |
242 | .set = ov9650_set_auto_exposure, | 242 | .set = ov9650_set_auto_exposure, |
243 | .get = ov9650_get_auto_exposure | 243 | .get = ov9650_get_auto_exposure |