aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/imx/imx7-media-csi.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-14 20:10:48 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-17 11:20:08 +0100
commit57cb848f004820a88279f91ca108af33554cd38e (patch)
treef344649fa70f0d30e1911773b95124ea3f01d8ad /drivers/staging/media/imx/imx7-media-csi.c
parentmedia: rkvdec: Use vb2_find_buffer (diff)
downloadlinux-dev-57cb848f004820a88279f91ca108af33554cd38e.tar.xz
linux-dev-57cb848f004820a88279f91ca108af33554cd38e.zip
media: v4l2-async: Add notifier operation to destroy asd instances
Drivers typically extend the v4l2_async_subdev structure by embedding it in a driver-specific structure, to store per-subdev custom data. The v4l2_async_subdev instances are freed by the v4l2-async framework, which makes this mechanism cumbersome to use safely when custom data needs special treatment to be destroyed (such as freeing additional memory, or releasing references to kernel objects). To ease this, add a .destroy() operation to the v4l2_async_notifier_operations structure. The operation is called right before the v4l2_async_subdev is freed, giving drivers a chance to destroy data if needed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/staging/media/imx/imx7-media-csi.c')
0 files changed, 0 insertions, 0 deletions