linux/drivers/media/platform/davinci
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
..
ccdc_hw_device.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dm355_ccdc_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dm355_ccdc.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
dm644x_ccdc_regs.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00
dm644x_ccdc.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
isif_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
isif.c media: isif: reset global state 2020-11-16 10:31:15 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vpbe_display.c media: davinci: replace http references with https 2020-07-19 07:54:47 +02:00
vpbe_osd_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 286 2019-06-05 17:36:37 +02:00
vpbe_osd.c media: davinci-vpbe: remove obsolete includes 2019-07-23 08:50:41 -04:00
vpbe_venc_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 286 2019-06-05 17:36:37 +02:00
vpbe_venc.c media: davinci-vpbe: remove obsolete includes 2019-07-23 08:50:41 -04:00
vpbe.c media: davinci/vpbe.c: ret contains the return code, not err 2021-01-27 08:32:43 +01:00
vpfe_capture.c media: davinci: fix incorrect pix_fmt assignment 2020-02-24 17:15:01 +01:00
vpif_capture.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
vpif_capture.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
vpif_display.c media: davinci: vpif_display: Remove unused v4l2-async code 2021-02-06 08:46:25 +01:00
vpif_display.h media: davinci: vpif_display: Remove unused v4l2-async code 2021-02-06 08:46:25 +01:00
vpif.c media: platform: davinci: Use DEFINE_SPINLOCK() for spinlock 2021-01-12 18:21:34 +01:00
vpif.h media: davinci: replace http references with https 2020-07-19 07:54:47 +02:00
vpss.c media: vpss: clean up resources in init 2020-07-19 13:38:08 +02:00