mirror-linux/drivers/media/platform/omap3isp
Laurent Pinchart b01edcbd40 media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API
The functions that add an async subdev to an async subdev notifier take
as an argument the size of the container structure they need to
allocate. This is error prone, as passing an invalid size will not be
caught by the compiler. Wrap those functions in macros that take a
container type instead of a size, and cast the returned pointer to the
desired type. The compiler will catch mistakes if the incorrect type is
passed to the macro, as the assignment types won't match.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> (core+ti-cal)
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-02-06 09:18:53 +01:00
..
Makefile
cfa_coef_table.h
gamma_table.h
isp.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
isp.h
ispccdc.c media: omap3isp: Remove misleading comment 2020-12-02 15:55:12 +01:00
ispccdc.h
ispccp2.c media: omap3isp: Set device on omap3isp subdevs 2019-08-15 08:06:34 -03:00
ispccp2.h
ispcsi2.c media: omap3isp: Set device on omap3isp subdevs 2019-08-15 08:06:34 -03:00
ispcsi2.h
ispcsiphy.c
ispcsiphy.h
isph3a.h
isph3a_aewb.c
isph3a_af.c
isphist.c
isphist.h
isppreview.c media: omap3isp: Add missed v4l2_ctrl_handler_free() for preview_init_entities() 2020-06-23 15:15:31 +02:00
isppreview.h
ispreg.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00
ispresizer.c media: omap3isp: Set device on omap3isp subdevs 2019-08-15 08:06:34 -03:00
ispresizer.h
ispstat.c media: omap3isp: Set device on omap3isp subdevs 2019-08-15 08:06:34 -03:00
ispstat.h
ispvideo.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ispvideo.h
luma_enhance_table.h
noise_filter_table.h
omap3isp.h