linux/drivers/media/platform/xilinx
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
..
Kconfig media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver 2020-06-23 13:11:46 +02:00
Makefile media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver 2020-06-23 13:11:46 +02:00
xilinx-csi2rxss.c media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver 2020-06-23 13:11:46 +02:00
xilinx-dma.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
xilinx-dma.h media: xilinx: Use the correct style for SPDX License Identifier 2019-11-05 08:30:51 -03:00
xilinx-tpg.c media: Use of_node_name_eq for node name comparisons 2018-12-07 08:28:54 -05:00
xilinx-vip.c media: media/platform: don't set description in ENUM_FMT 2019-07-22 14:43:59 -04:00
xilinx-vip.h media: xilinx: Use the correct style for SPDX License Identifier 2019-11-05 08:30:51 -03:00
xilinx-vipp.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
xilinx-vipp.h media: xilinx: Use the correct style for SPDX License Identifier 2019-11-05 08:30:51 -03:00
xilinx-vtc.c media: xilinx: Use SPDX-License-Identifier 2018-12-03 13:40:05 -05:00
xilinx-vtc.h media: xilinx: Use the correct style for SPDX License Identifier 2019-11-05 08:30:51 -03:00