Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e879b7f3 authored by Liu Ying's avatar Liu Ying Committed by Mauro Carvalho Chehab
Browse files

[media] V4L: OV5642:remove redundant code to set cropping w/h



This patch contains code change only to remove redundant
code to set priv->crop_rect.width/height in probe function.

Signed-off-by: default avatarLiu Ying <Ying.Liu@freescale.com>
Acked-by: default avatarChris Lalancette <clalancette@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f4d4e765
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1025,8 +1025,6 @@ static int ov5642_probe(struct i2c_client *client,
	priv->crop_rect.height	= OV5642_DEFAULT_HEIGHT;
	priv->crop_rect.left	= (OV5642_MAX_WIDTH - OV5642_DEFAULT_WIDTH) / 2;
	priv->crop_rect.top	= (OV5642_MAX_HEIGHT - OV5642_DEFAULT_HEIGHT) / 2;
	priv->crop_rect.width	= OV5642_DEFAULT_WIDTH;
	priv->crop_rect.height	= OV5642_DEFAULT_HEIGHT;
	priv->total_width = OV5642_DEFAULT_WIDTH + BLANKING_EXTRA_WIDTH;
	priv->total_height = BLANKING_MIN_HEIGHT;