From: Benjamin Mugnier Date: Wed, 1 Feb 2023 14:04:14 +0000 (+0100) Subject: media: i2c: st-vgxy61: Remove duplicate default mode set on probe X-Git-Tag: v6.6.7~3028^2~406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a6cf0871265ae89090453e5eab1cb4a5a8ace0c;p=platform%2Fkernel%2Flinux-starfive.git media: i2c: st-vgxy61: Remove duplicate default mode set on probe At this stage the default mode is unknown. This is done correctly by vgxy61_fill_framefmt right after. Signed-off-by: Benjamin Mugnier Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/st-vgxy61.c b/drivers/media/i2c/st-vgxy61.c index 5dcabee6..9c0284f 100644 --- a/drivers/media/i2c/st-vgxy61.c +++ b/drivers/media/i2c/st-vgxy61.c @@ -1334,7 +1334,6 @@ static int vgxy61_init_cfg(struct v4l2_subdev *sd, struct vgxy61_dev *sensor = to_vgxy61_dev(sd); struct v4l2_subdev_format fmt = { 0 }; - sensor->current_mode = sensor->default_mode; vgxy61_fill_framefmt(sensor, sensor->current_mode, &fmt.format, VGXY61_MEDIA_BUS_FMT_DEF);