linux/drivers/media/v4l2-core
Janusz Krzysztofik a8fa55078a media: v4l2-subdev: Verify arguments in v4l2_subdev_call()
Correctness of format type (try or active) and pad number parameters
passed to subdevice operation callbacks is now verified only for IOCTL
calls.  However, those callbacks are also used by drivers, e.g., V4L2
host interfaces.

Since both subdev_do_ioctl() and drivers are using v4l2_subdev_call()
macro while calling subdevice operations, move those parameter checks
from subdev_do_ioctl() to v4l2_subdev_call() so we can avoid taking care
of those checks inside drivers.

Define a wrapper function for each operation callback in scope, then
gather those wrappers in a static v4l2_subdev_ops structure so the
v4l2_subdev_call() macro can find them easy if provided.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-06-24 14:53:44 -04:00
..
Kconfig Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
Makefile media: v4l2-core: get rid of videobuf-dvb 2018-05-04 10:57:31 -04:00
tuner-core.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
v4l2-async.c media: v4l2: async: remove locking when initializing async notifier 2018-12-05 06:51:28 -05:00
v4l2-clk.c media: Convert to using %pOF instead of full_name 2017-08-20 08:20:20 -04:00
v4l2-common.c media: v4l2-common: Add an helper to apply frmsize constraints 2019-05-29 10:48:34 -04:00
v4l2-compat-ioctl32.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
v4l2-ctrls.c media: v4l2-ctrl: Initialize _BUTTON and _CTRL_CLASS 2019-06-21 16:18:33 -04:00
v4l2-dev.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
v4l2-device.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
v4l2-dv-timings.c media: hdmi.h: rename ADOBE_RGB to OPRGB and ADOBE_YCC to OPYCC 2018-09-24 09:28:41 -04:00
v4l2-event.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
v4l2-fh.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
v4l2-flash-led-class.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
v4l2-fwnode.c media: v4l2-fwnode: Avoid using PTR_ERR(NULL) 2019-06-21 17:54:00 -04:00
v4l2-ioctl.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
v4l2-mc.c media: v4l2-mc: add print messages when media graph fails 2018-09-17 13:16:19 -04:00
v4l2-mem2mem.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
v4l2-subdev.c media: v4l2-subdev: Verify arguments in v4l2_subdev_call() 2019-06-24 14:53:44 -04:00
v4l2-trace.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
videobuf-core.c media: add SPDX headers to some files 2019-06-12 11:42:27 -04:00
videobuf-dma-contig.c media: add SPDX headers to some files 2019-06-12 11:42:27 -04:00
videobuf-dma-sg.c media: add SPDX headers to some files 2019-06-12 11:42:27 -04:00
videobuf-vmalloc.c media: add SPDX headers to some files 2019-06-12 11:42:27 -04:00