diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-07-01 14:15:58 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-07-15 15:21:11 +0100 |
| commit | 982c0487185bd466059ff618f398a8d074ddb654 (patch) | |
| tree | 9977ce97937c1d730c417dc50499eb95a412db1a /tools/perf/scripts/python | |
| parent | media: ar0521: fix Kconfig: VIDEO_V4L2 -> VIDEO_DEV (diff) | |
| download | linux-982c0487185bd466059ff618f398a8d074ddb654.tar.gz linux-982c0487185bd466059ff618f398a8d074ddb654.zip | |
media: subdev: Add v4l2_subdev_call_state_try() macro
Add a helper macro for the situations where a non-MC driver needs to
call a state-operation (operation which takes a subdev state as a
parameter) in try-context in another subdev.
The macro allocates a new subdev state for the called subdev and frees
the state afterwards.
An example use case is a media platform driver testing if a
v4l2_subdev_format would be accepted by a source subdev.
This should not be used in MC drivers.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
