Commit 2a2f21e3 authored by Jacopo Mondi's avatar Jacopo Mondi Committed by Mauro Carvalho Chehab

media: ov772x: Re-organize in-code comments

A lot of comments that would fit a single line were spread on two or
more lines. Also fix capitalization and punctuation where appropriate.
Signed-off-by: default avatarJacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent eee34d8b
...@@ -910,17 +910,13 @@ static int ov772x_set_params(struct ov772x_priv *priv, ...@@ -910,17 +910,13 @@ static int ov772x_set_params(struct ov772x_priv *priv,
int ret; int ret;
u8 val; u8 val;
/* /* Reset hardware. */
* reset hardware
*/
ov772x_reset(client); ov772x_reset(client);
/* /* Edge Ctrl. */
* Edge Ctrl
*/
if (priv->info->edgectrl.strength & OV772X_MANUAL_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. * Edge auto strength bit is set by default.
* Remove it when manual mode. * Remove it when manual mode.
...@@ -944,9 +940,9 @@ static int ov772x_set_params(struct ov772x_priv *priv, ...@@ -944,9 +940,9 @@ static int ov772x_set_params(struct ov772x_priv *priv,
} else if (priv->info->edgectrl.upper > priv->info->edgectrl.lower) { } 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, ret = ov772x_mask_set(client,
EDGE_UPPER, OV772X_EDGE_UPPER_MASK, EDGE_UPPER, OV772X_EDGE_UPPER_MASK,
...@@ -961,7 +957,7 @@ static int ov772x_set_params(struct ov772x_priv *priv, ...@@ -961,7 +957,7 @@ static int ov772x_set_params(struct ov772x_priv *priv,
goto ov772x_set_fmt_error; goto ov772x_set_fmt_error;
} }
/* Format and window size */ /* Format and window size. */
ret = ov772x_write(client, HSTART, win->rect.left >> 2); ret = ov772x_write(client, HSTART, win->rect.left >> 2);
if (ret < 0) if (ret < 0)
goto ov772x_set_fmt_error; goto ov772x_set_fmt_error;
...@@ -993,9 +989,7 @@ static int ov772x_set_params(struct ov772x_priv *priv, ...@@ -993,9 +989,7 @@ static int ov772x_set_params(struct ov772x_priv *priv,
if (ret < 0) if (ret < 0)
goto ov772x_set_fmt_error; goto ov772x_set_fmt_error;
/* /* Set DSP_CTRL3. */
* set DSP_CTRL3
*/
val = cfmt->dsp3; val = cfmt->dsp3;
if (val) { if (val) {
ret = ov772x_mask_set(client, ret = ov772x_mask_set(client,
...@@ -1011,9 +1005,7 @@ static int ov772x_set_params(struct ov772x_priv *priv, ...@@ -1011,9 +1005,7 @@ static int ov772x_set_params(struct ov772x_priv *priv,
goto ov772x_set_fmt_error; goto ov772x_set_fmt_error;
} }
/* /* Set COM3. */
* set COM3
*/
val = cfmt->com3; val = cfmt->com3;
if (priv->info->flags & OV772X_FLAG_VFLIP) if (priv->info->flags & OV772X_FLAG_VFLIP)
val |= VFLIP_IMG; val |= VFLIP_IMG;
...@@ -1041,9 +1033,7 @@ static int ov772x_set_params(struct ov772x_priv *priv, ...@@ -1041,9 +1033,7 @@ static int ov772x_set_params(struct ov772x_priv *priv,
if (ret < 0) if (ret < 0)
goto ov772x_set_fmt_error; goto ov772x_set_fmt_error;
/* /* Set COM8. */
* set COM8
*/
if (priv->band_filter) { if (priv->band_filter) {
ret = ov772x_mask_set(client, COM8, BNDF_ON_OFF, 1); ret = ov772x_mask_set(client, COM8, BNDF_ON_OFF, 1);
if (!ret) if (!ret)
...@@ -1153,9 +1143,7 @@ static int ov772x_video_probe(struct ov772x_priv *priv) ...@@ -1153,9 +1143,7 @@ static int ov772x_video_probe(struct ov772x_priv *priv)
if (ret < 0) if (ret < 0)
return ret; return ret;
/* /* Check and show product ID and manufacturer ID. */
* check and show product ID and manufacturer ID
*/
pid = ov772x_read(client, PID); pid = ov772x_read(client, PID);
ver = ov772x_read(client, VER); ver = ov772x_read(client, VER);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment