OpenCloudOS-Kernel/Documentation/media/kapi
Ezequiel Garcia 8fd390b89c media: Split v4l2_pipeline_pm_use into v4l2_pipeline_pm_{get, put}
Currently, v4l2_pipeline_pm_use() prototype is:

  int v4l2_pipeline_pm_use(struct media_entity *entity, int use)

Where the 'use' argument shall only be set to '1' for enable/power-on,
or to '0' for disable/power-off. The integer return is specified
as only meaningful when 'use' is set to '1'.

Let's enforce this semantic by splitting the function in two:
v4l2_pipeline_pm_get and v4l2_pipeline_pm_put. This is done
for several reasons.

It makes the API easier to use (or harder to misuse).
It removes the constraint on the values the 'use' argument
shall take. Also, it removes the need to constraint
the return value, by making v4l2_pipeline_pm_put void return.

And last, it's more consistent with other kernel APIs, such
as the runtime pm APIs, which makes the code more symmetric.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-03-02 15:11:40 +01:00
..
cec-core.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
csi2.rst media: Split v4l2_pipeline_pm_use into v4l2_pipeline_pm_{get, put} 2020-03-02 15:11:40 +01:00
dtv-ca.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
dtv-common.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
dtv-core.rst media: docs: fix minor typos 2019-06-05 11:31:51 -04:00
dtv-demux.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
dtv-frontend.rst media: Documentation: media: dtv-frontend.rst: fix a few minor typos 2020-01-08 11:45:26 +01:00
dtv-net.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
mc-core.rst media: Media Device Allocator API 2019-04-22 11:18:26 -04:00
rc-core.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-async.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-clocks.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-common.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-controls.rst media: Documentation: v4l2_ctrl_new_std_compound 2019-10-10 11:35:32 -03:00
v4l2-core.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-dev.rst media: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:52:39 +01:00
v4l2-device.rst media: Documentation: fix several typos 2019-03-01 09:54:06 -05:00
v4l2-dv-timings.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-event.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-fh.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-flash-led-class.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-fwnode.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-intro.rst media: Documentation: fix several typos 2019-03-01 09:54:06 -05:00
v4l2-mc.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-mediabus.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-mem2mem.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-rect.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-subdev.rst media: Documentation: fix several typos 2019-03-01 09:54:06 -05:00
v4l2-tuner.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-tveeprom.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-videobuf.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00
v4l2-videobuf2.rst media: docs: brainless mass add SPDX headers to all media files 2018-12-05 10:40:34 -05:00