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/sn9c20x.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/sn9c20x.c')
-rw-r--r-- | drivers/media/video/gspca/sn9c20x.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index 57673891c2c..6b155ae3a74 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c | |||
@@ -1270,7 +1270,8 @@ static int soi968_init_sensor(struct gspca_dev *gspca_dev) | |||
1270 | } | 1270 | } |
1271 | } | 1271 | } |
1272 | /* disable hflip and vflip */ | 1272 | /* disable hflip and vflip */ |
1273 | gspca_dev->ctrl_dis = (1 << HFLIP_IDX) | (1 << VFLIP_IDX) | (1 << EXPOSURE_IDX); | 1273 | gspca_dev->ctrl_dis = (1 << HFLIP_IDX) | (1 << VFLIP_IDX) |
1274 | | (1 << EXPOSURE_IDX); | ||
1274 | sd->hstart = 60; | 1275 | sd->hstart = 60; |
1275 | sd->vstart = 11; | 1276 | sd->vstart = 11; |
1276 | return 0; | 1277 | return 0; |
@@ -1349,7 +1350,9 @@ static int mt9v_init_sensor(struct gspca_dev *gspca_dev) | |||
1349 | return -ENODEV; | 1350 | return -ENODEV; |
1350 | } | 1351 | } |
1351 | } | 1352 | } |
1352 | gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) | (1 << GAIN_IDX); | 1353 | gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) |
1354 | | (1 << AUTOGAIN_IDX) | ||
1355 | | (1 << GAIN_IDX); | ||
1353 | sd->hstart = 2; | 1356 | sd->hstart = 2; |
1354 | sd->vstart = 2; | 1357 | sd->vstart = 2; |
1355 | sd->sensor = SENSOR_MT9V111; | 1358 | sd->sensor = SENSOR_MT9V111; |
@@ -1393,7 +1396,8 @@ static int mt9m112_init_sensor(struct gspca_dev *gspca_dev) | |||
1393 | return -ENODEV; | 1396 | return -ENODEV; |
1394 | } | 1397 | } |
1395 | } | 1398 | } |
1396 | gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) | (1 << GAIN_IDX); | 1399 | gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) |
1400 | | (1 << GAIN_IDX); | ||
1397 | sd->hstart = 0; | 1401 | sd->hstart = 0; |
1398 | sd->vstart = 2; | 1402 | sd->vstart = 2; |
1399 | return 0; | 1403 | return 0; |
@@ -1410,7 +1414,8 @@ static int mt9m111_init_sensor(struct gspca_dev *gspca_dev) | |||
1410 | return -ENODEV; | 1414 | return -ENODEV; |
1411 | } | 1415 | } |
1412 | } | 1416 | } |
1413 | gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) | (1 << GAIN_IDX); | 1417 | gspca_dev->ctrl_dis = (1 << EXPOSURE_IDX) | (1 << AUTOGAIN_IDX) |
1418 | | (1 << GAIN_IDX); | ||
1414 | sd->hstart = 0; | 1419 | sd->hstart = 0; |
1415 | sd->vstart = 2; | 1420 | sd->vstart = 2; |
1416 | return 0; | 1421 | return 0; |