Skip to content

Commit 5cb218f

Browse files
pinchartlHans Verkuil
authored andcommitted
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 7e70084 ("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: 7e70084 ("media: i2c: imx219: Switch from open to init_cfg") Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Jacopo Mondi <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent e784e78 commit 5cb218f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/i2c/imx219.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,12 @@ static int imx219_init_cfg(struct v4l2_subdev *sd,
691691
struct v4l2_mbus_framefmt *format;
692692
struct v4l2_rect *crop;
693693

694-
/* Initialize try_fmt */
694+
/* Initialize the format. */
695695
format = v4l2_subdev_get_pad_format(sd, state, 0);
696696
imx219_update_pad_format(imx219, &supported_modes[0], format,
697697
MEDIA_BUS_FMT_SRGGB10_1X10);
698698

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

0 commit comments

Comments
 (0)