media: i2c: imx219: Use subdev active state
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Mon, 10 Jul 2023 15:52:01 +0000 (17:52 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:39 +0000 (07:58 +0200)
commite8a5b1df000e1a23c04dadbe99621441e0889f88
treed56bb43d7d2fa565d95c49928870a8d50d289818
parentb2fe7aeebe7fb1c05c64bd528403250e09502086
media: i2c: imx219: Use subdev active state

Port the imx219 sensor driver to use the subdev active state.

Move all the format configuration to the subdevice state and simplify
the format handling, locking and initialization.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/imx219.c