diff mbox series

[1/4] media: i2c: st-vgxy61: Remove duplicate default mode set on probe

Message ID 20230201140417.89195-2-benjamin.mugnier@foss.st.com
State Accepted
Commit 5a6cf0871265ae89090453e5eab1cb4a5a8ace0c
Headers show
Series media: i2c: st-vgxy61: Power up sequence fixes | expand

Commit Message

Benjamin Mugnier Feb. 1, 2023, 2:04 p.m. UTC
At this stage the default mode is unknown.
This is done correctly by vgxy61_fill_framefmt right after.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
---
 drivers/media/i2c/st-vgxy61.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/media/i2c/st-vgxy61.c b/drivers/media/i2c/st-vgxy61.c
index 826baf4e064d..df5483f14560 100644
--- a/drivers/media/i2c/st-vgxy61.c
+++ b/drivers/media/i2c/st-vgxy61.c
@@ -1332,7 +1332,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);