media: i2c: imx415: Use v4l2_subdev_get_fmt()
authorUmang Jain <umang.jain@ideasonboard.com>
Wed, 30 Aug 2023 04:53:23 +0000 (10:23 +0530)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:56 +0000 (09:39 +0200)
commit71f8a5e4be122a8737abfa6d14551480747c5e00
tree195462fc8f62f07e7a0d5bc1ac85a730241603db
parent0822315e46b400f611cba1193456ee6a5dc3e41d
media: i2c: imx415: Use v4l2_subdev_get_fmt()

The imx415 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: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Michael Riesch <michael.riesch@wolfvision.net>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/imx415.c