media: i2c: imx296: Use v4l2_subdev_get_fmt()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Feb 2023 22:47:02 +0000 (23:47 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Mar 2023 14:56:44 +0000 (15:56 +0100)
commitef586f262c1c86c3a1a649a6419dc2e0ac1136d1
tree1aab626a8f407cc270be28c7e40ec3dca8eb8876
parente004c637fb1d4b975d476f800675ec18c9502cc9
media: i2c: imx296: Use v4l2_subdev_get_fmt()

The imx296 driver uses the subdev active state, there's no need to
implement the .get_fmt() operation manually. Use the
v4l2_subdev_get_fmt() helper instead.

Signed-off-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/imx296.c