]> git.baikalelectronics.ru Git - kernel.git/commit
media: mt9p031: Move open subdev op init code into init_cfg
authorMarek Vasut <marex@denx.de>
Sat, 18 Jun 2022 23:54:43 +0000 (00:54 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 16:56:46 +0000 (17:56 +0100)
commit7e215a9256125f1e5baed9fa8713c9d9166bbcdb
treeac9fb532efc306fa5d9542ad7ac421de32622a88
parentf76a6284c5ea4caa60081325db4b27ac8e3b682f
media: mt9p031: Move open subdev op init code into init_cfg

The .open subdev op is not always called soon enough to initialize
the default crop settings. Move all this initialization into .init_cfg
op instead.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/mt9p031.c