summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_ov9650.c')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_ov9650.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
index ce0d8c7da..0593adc64 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
@@ -156,17 +156,18 @@ int ov9650_start(struct sd *sd)
for (i = 0; i < ARRAY_SIZE(res_init_ov9650) && !err; i++) {
if (res_init_ov9650[i][0] == BRIDGE)
- err = m5602_write_bridge(sd, res_init_ov9650[i][1], res_init_ov9650[i][2]);
+ err = m5602_write_bridge(sd, res_init_ov9650[i][1],
+ res_init_ov9650[i][2]);
else if (res_init_ov9650[i][0] == SENSOR) {
u8 data = res_init_ov9650[i][2];
- err = m5602_write_sensor(sd, res_init_ov9650[i][1], &data, 1);
+ err = m5602_write_sensor(sd,
+ res_init_ov9650[i][1], &data, 1);
}
}
if (err < 0)
return err;
- switch (cam->cam_mode[sd->gspca_dev.curr_mode].width)
- {
+ switch (cam->cam_mode[sd->gspca_dev.curr_mode].width) {
case 640:
PDEBUG(D_V4L2, "Configuring camera for VGA mode");
@@ -177,7 +178,8 @@ int ov9650_start(struct sd *sd)
err = m5602_write_sensor(sd,
VGA_ov9650[i][1], &data, 1);
} else {
- err = m5602_write_bridge(sd, VGA_ov9650[i][1], VGA_ov9650[i][2]);
+ err = m5602_write_bridge(sd, VGA_ov9650[i][1],
+ VGA_ov9650[i][2]);
}
}
break;
@@ -192,7 +194,8 @@ int ov9650_start(struct sd *sd)
err = m5602_write_sensor(sd,
CIF_ov9650[i][1], &data, 1);
} else {
- err = m5602_write_bridge(sd, CIF_ov9650[i][1], CIF_ov9650[i][2]);
+ err = m5602_write_bridge(sd, CIF_ov9650[i][1],
+ CIF_ov9650[i][2]);
}
}
break;
@@ -207,7 +210,8 @@ int ov9650_start(struct sd *sd)
err = m5602_write_sensor(sd,
QVGA_ov9650[i][1], &data, 1);
} else {
- err = m5602_write_bridge(sd, QVGA_ov9650[i][1], QVGA_ov9650[i][2]);
+ err = m5602_write_bridge(sd, QVGA_ov9650[i][1],
+ QVGA_ov9650[i][2]);
}
}
break;
@@ -221,7 +225,8 @@ int ov9650_start(struct sd *sd)
err = m5602_write_sensor(sd,
QCIF_ov9650[i][1], &data, 1);
} else {
- err = m5602_write_bridge(sd, QCIF_ov9650[i][1], QCIF_ov9650[i][2]);
+ err = m5602_write_bridge(sd, QCIF_ov9650[i][1],
+ QCIF_ov9650[i][2]);
}
}
break;