提交 325527a6 编写于 作者: N Niklas Söderlund 提交者: Mauro Carvalho Chehab

[media] rcar-vin: reduce indentation in rvin_s_dv_timings()

Align style with the rest of the driver.
Signed-off-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 7eb95877
...@@ -504,16 +504,18 @@ static int rvin_s_dv_timings(struct file *file, void *priv_fh, ...@@ -504,16 +504,18 @@ static int rvin_s_dv_timings(struct file *file, void *priv_fh,
{ {
struct rvin_dev *vin = video_drvdata(file); struct rvin_dev *vin = video_drvdata(file);
struct v4l2_subdev *sd = vin_to_source(vin); struct v4l2_subdev *sd = vin_to_source(vin);
int err; int ret;
err = v4l2_subdev_call(sd, video, s_dv_timings, timings); ret = v4l2_subdev_call(sd, video, s_dv_timings, timings);
if (!err) { if (ret)
vin->source.width = timings->bt.width; return ret;
vin->source.height = timings->bt.height;
vin->format.width = timings->bt.width; vin->source.width = timings->bt.width;
vin->format.height = timings->bt.height; vin->source.height = timings->bt.height;
} vin->format.width = timings->bt.width;
return err; vin->format.height = timings->bt.height;
return 0;
} }
static int rvin_g_dv_timings(struct file *file, void *priv_fh, static int rvin_g_dv_timings(struct file *file, void *priv_fh,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册