int ret;
u8 val;
- /*
- * reset hardware
- */
+ /* Reset hardware. */
ov772x_reset(client);
- /*
- * Edge Ctrl
- */
+ /* Edge Ctrl. */
if (priv->info->edgectrl.strength & OV772X_MANUAL_EDGE_CTRL) {
/*
- * Manual Edge Control Mode
+ * Manual Edge Control Mode.
*
* Edge auto strength bit is set by default.
* Remove it when manual mode.
} else if (priv->info->edgectrl.upper > priv->info->edgectrl.lower) {
/*
- * Auto Edge Control Mode
+ * Auto Edge Control Mode.
*
- * set upper and lower limit
+ * Set upper and lower limit.
*/
ret = ov772x_mask_set(client,
EDGE_UPPER, OV772X_EDGE_UPPER_MASK,
goto ov772x_set_fmt_error;
}
- /* Format and window size */
+ /* Format and window size. */
ret = ov772x_write(client, HSTART, win->rect.left >> 2);
if (ret < 0)
goto ov772x_set_fmt_error;
if (ret < 0)
goto ov772x_set_fmt_error;
- /*
- * set DSP_CTRL3
- */
+ /* Set DSP_CTRL3. */
val = cfmt->dsp3;
if (val) {
ret = ov772x_mask_set(client,
goto ov772x_set_fmt_error;
}
- /*
- * set COM3
- */
+ /* Set COM3. */
val = cfmt->com3;
if (priv->info->flags & OV772X_FLAG_VFLIP)
val |= VFLIP_IMG;
if (ret < 0)
goto ov772x_set_fmt_error;
- /*
- * set COM8
- */
+ /* Set COM8. */
if (priv->band_filter) {
ret = ov772x_mask_set(client, COM8, BNDF_ON_OFF, 1);
if (!ret)
if (ret < 0)
return ret;
- /*
- * check and show product ID and manufacturer ID
- */
+ /* Check and show product ID and manufacturer ID. */
pid = ov772x_read(client, PID);
ver = ov772x_read(client, VER);