mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
ce875a29b1
commit
5a6cf08712
1 changed files with 0 additions and 1 deletions
|
@ -1334,7 +1334,6 @@ static int vgxy61_init_cfg(struct v4l2_subdev *sd,
|
||||||
struct vgxy61_dev *sensor = to_vgxy61_dev(sd);
|
struct vgxy61_dev *sensor = to_vgxy61_dev(sd);
|
||||||
struct v4l2_subdev_format fmt = { 0 };
|
struct v4l2_subdev_format fmt = { 0 };
|
||||||
|
|
||||||
sensor->current_mode = sensor->default_mode;
|
|
||||||
vgxy61_fill_framefmt(sensor, sensor->current_mode, &fmt.format,
|
vgxy61_fill_framefmt(sensor, sensor->current_mode, &fmt.format,
|
||||||
VGXY61_MEDIA_BUS_FMT_DEF);
|
VGXY61_MEDIA_BUS_FMT_DEF);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue