linux/drivers/media/platform/ti-vpe
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
..
cal-camerarx.c media: ti-vpe: cal: Mark cal_camerarx_media_ops with static keyword 2021-01-14 13:57:49 +01:00
cal-video.c media: ti-vpe: cal: Simplify the context API 2021-01-04 12:17:09 +01:00
cal.c media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
cal.h media: ti-vpe: cal: avoid FIELD_GET assertion 2021-01-12 18:09:46 +01:00
cal_regs.h media: ti-vpe: cal: Move CAL_NUM_CSI2_PORTS from cal_regs.h to cal.c 2020-07-19 10:30:51 +02:00
csc.c media: ti-vpe: csc: fix single vs multiplanar format handling 2019-12-13 09:29:52 +01:00
csc.h media: ti-vpe: vpe: don't rely on colorspace member for conversion 2019-10-10 13:54:22 -03:00
Makefile media: ti-vpe: cal: Split CAMERARX handling to cal-camerarx.c 2020-07-19 10:40:43 +02:00
sc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sc_coeff.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vpdma.c media: ti-vpe: fix smatch error 2019-11-08 07:27:47 +01:00
vpdma.h media: ti-vpe: vpe: fix a v4l2-compliance failure about invalid sizeimage 2019-10-10 13:49:02 -03:00
vpdma_priv.h media: ti-vpe: vpdma: Use fixed type for address in descriptor 2019-10-10 13:50:36 -03:00
vpe.c media: ti-vpe: Do not zero reserved fields 2021-01-27 13:21:27 +01:00
vpe_regs.h media: use the BIT() macro 2019-08-26 14:08:50 -03:00