mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
74d01576fc
commit
856b0b8ffb
|
@ -286,6 +286,7 @@ static int ov9640_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||||
OV9640_MVFP_H, 0);
|
OV9640_MVFP_H, 0);
|
||||||
return ov9640_reg_rmw(client, OV9640_MVFP, 0, OV9640_MVFP_H);
|
return ov9640_reg_rmw(client, OV9640_MVFP, 0, OV9640_MVFP_H);
|
||||||
}
|
}
|
||||||
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -341,6 +342,7 @@ static int ov9640_s_power(struct v4l2_subdev *sd, int on)
|
||||||
usleep_range(1000, 2000);
|
usleep_range(1000, 2000);
|
||||||
gpiod_set_value(priv->gpio_power, 0);
|
gpiod_set_value(priv->gpio_power, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -545,6 +547,7 @@ static int ov9640_set_fmt(struct v4l2_subdev *sd,
|
||||||
return ov9640_s_fmt(sd, mf);
|
return ov9640_s_fmt(sd, mf);
|
||||||
|
|
||||||
cfg->try_fmt = *mf;
|
cfg->try_fmt = *mf;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -556,6 +559,7 @@ static int ov9640_enum_mbus_code(struct v4l2_subdev *sd,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
code->code = ov9640_codes[code->index];
|
code->code = ov9640_codes[code->index];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -731,6 +735,7 @@ static int ov9640_probe(struct i2c_client *client,
|
||||||
v4l2_clk_put(priv->clk);
|
v4l2_clk_put(priv->clk);
|
||||||
eclkget:
|
eclkget:
|
||||||
v4l2_ctrl_handler_free(&priv->hdl);
|
v4l2_ctrl_handler_free(&priv->hdl);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue