diff options
author | Petr Cvek <petrcvekcz@gmail.com> | 2018-12-13 16:39:17 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-16 19:31:33 +0100 |
commit | 856b0b8ffbf69d7b146a62669904576538d74aac (patch) | |
tree | 0a21923bdb996807674fbbe29c5c10545c765463 /drivers/media/i2c/ov9640.c | |
parent | media: i2c: ov9640: change array index or length variables to unsigned (diff) | |
download | linux-856b0b8ffbf69d7b146a62669904576538d74aac.tar.xz linux-856b0b8ffbf69d7b146a62669904576538d74aac.zip |
media: i2c: ov9640: add space before return for better clarity
Some returns were adjoined to unrelated code blocks. This patch adds
a space inbetween.
Signed-off-by: Petr Cvek <petrcvekcz@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ov9640.c')
-rw-r--r-- | drivers/media/i2c/ov9640.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov9640.c b/drivers/media/i2c/ov9640.c index 08f3f8247759..2839aa3b4fb4 100644 --- a/drivers/media/i2c/ov9640.c +++ b/drivers/media/i2c/ov9640.c @@ -286,6 +286,7 @@ static int ov9640_s_ctrl(struct v4l2_ctrl *ctrl) OV9640_MVFP_H, 0); return ov9640_reg_rmw(client, OV9640_MVFP, 0, OV9640_MVFP_H); } + return -EINVAL; } @@ -341,6 +342,7 @@ static int ov9640_s_power(struct v4l2_subdev *sd, int on) usleep_range(1000, 2000); gpiod_set_value(priv->gpio_power, 0); } + return ret; } @@ -545,6 +547,7 @@ static int ov9640_set_fmt(struct v4l2_subdev *sd, return ov9640_s_fmt(sd, mf); cfg->try_fmt = *mf; + return 0; } @@ -556,6 +559,7 @@ static int ov9640_enum_mbus_code(struct v4l2_subdev *sd, return -EINVAL; code->code = ov9640_codes[code->index]; + return 0; } @@ -731,6 +735,7 @@ eprobe: v4l2_clk_put(priv->clk); eclkget: v4l2_ctrl_handler_free(&priv->hdl); + return ret; } |