Commit 5cb218ff authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Hans Verkuil
Browse files

media: i2c: imx219: Fix a typo referring to a wrong variable



The imx219_init_cfg() function has stopped operating on the try format
since commit 7e700847 ("media: i2c: imx219: Switch from open to
init_cfg"), but a comment in the function wasn't updated. Fix it.

While at it, improve spelling in a second comment in the function.

Fixes: 7e700847 ("media: i2c: imx219: Switch from open to init_cfg")
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarJacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent e784e78e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -691,12 +691,12 @@ static int imx219_init_cfg(struct v4l2_subdev *sd,
	struct v4l2_mbus_framefmt *format;
	struct v4l2_rect *crop;

	/* Initialize try_fmt */
	/* Initialize the format. */
	format = v4l2_subdev_get_pad_format(sd, state, 0);
	imx219_update_pad_format(imx219, &supported_modes[0], format,
				 MEDIA_BUS_FMT_SRGGB10_1X10);

	/* Initialize crop rectangle. */
	/* Initialize the crop rectangle. */
	crop = v4l2_subdev_get_pad_crop(sd, state, 0);
	crop->top = IMX219_PIXEL_ARRAY_TOP;
	crop->left = IMX219_PIXEL_ARRAY_LEFT;