aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBenjamin Mugnier <benjamin.mugnier@foss.st.com>2023-02-01 15:04:14 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-03-20 00:35:41 +0100
commit5a6cf0871265ae89090453e5eab1cb4a5a8ace0c (patch)
tree86a9898a6a2af29a3ac9d77cd72b0dcb6611c82c
parentmedia: Documentation: userspace-api: media: drop clipping, destructive overlays (diff)
downloadwireguard-linux-5a6cf0871265ae89090453e5eab1cb4a5a8ace0c.tar.xz
wireguard-linux-5a6cf0871265ae89090453e5eab1cb4a5a8ace0c.zip
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 <benjamin.mugnier@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r--drivers/media/i2c/st-vgxy61.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/i2c/st-vgxy61.c b/drivers/media/i2c/st-vgxy61.c
index 5dcabee6677d..9c0284f83413 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);