linux/drivers/staging
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
..
android drm pull for 5.6-rc1 2020-01-30 08:04:01 -08:00
axis-fifo staging: axis-fifo: replace spinlock with mutex 2020-01-22 09:58:01 +01:00
board
clocking-wizard
comedi staging: comedi: drivers: fix spelling mistake "to" -> "too" 2020-01-23 19:16:13 +01:00
emxx_udc staging: emxx_udc: Fix invalid reference error 2019-10-30 10:38:46 +01:00
exfat staging: exfat: remove fs_func struct. 2020-01-23 19:16:13 +01:00
fbtft fbtft: Fix the initialization from property algorithm 2019-12-10 15:55:55 +01:00
fieldbus staging: fieldbus: anybuss: use devm_platform_ioremap_resource helper 2019-10-27 08:15:43 +01:00
fsl-dpaa2 staging: dpaa2-ethsw: ordered workqueue should be per ethsw 2019-11-13 00:10:16 +01:00
fwserial staging: fwserial: Fix Kconfig indentation (seven spaces) 2019-11-22 11:32:54 +01:00
gasket remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
gdm724x
goldfish
greybus
gs_fpgaboot
hp Merge 5.5-rc2 into staging-next 2019-12-16 09:06:50 +01:00
iio iio: adis: Remove startup_delay 2020-01-12 11:34:13 +00:00
kpc2000 Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
ks7010 netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
media media: Split v4l2_pipeline_pm_use into v4l2_pipeline_pm_{get, put} 2020-03-02 15:11:40 +01:00
most media: staging/most: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:52:59 +01:00
mt7621-dma staging: mt7621-dma: align to match open parenthesis 2019-11-07 16:14:10 +01:00
mt7621-dts staging: mt7621-dts: fix register range of memc node in mt7621.dtsi 2020-01-10 13:49:18 +01:00
mt7621-pci MIPS: ralink: enable PCI support only if driver for mt7621 SoC is selected 2019-11-14 13:09:37 +08:00
mt7621-pci-phy
mt7621-pinctrl
netlogic Staging: Netlogic: Fix spelling mistake 2019-10-24 23:08:32 -04:00
nvec staging: nvec: check return value 2019-12-19 19:23:29 +01:00
olpc_dcon
pi433 compat_ioctl: remove most of fs/compat_ioctl.c 2019-12-01 13:46:15 -08:00
qlge Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
ralink-gdma
rtl8188eu staging: rtl8188eu: remove unused enum and defines 2020-01-22 09:44:44 +01:00
rtl8192e Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
rtl8192u proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
rtl8712 staging: rtl8712: simplify evm_db2percentage() 2020-01-22 09:44:45 +01:00
rtl8723bs staging: rtl8723bs: remove ODM_GetRightChnlPlaceforIQK() 2020-01-14 14:56:37 +01:00
rts5208 Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
sm750fb remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
speakup
unisys netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
uwb remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
vc04_services media: bcm2835-camera: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:52:49 +01:00
vme
vt6655 staging: vt6655: remove redundant assignment to variable ret 2020-01-15 13:11:41 +01:00
vt6656 staging: vt6656: Remove memory buffer from vnt_download_firmware. 2020-01-22 09:52:39 +01:00
wfx staging: wfx: update TODO 2020-01-16 20:59:54 +01:00
wilc1000 staging: wilc1000: avoid mutex unlock without lock in wilc_wlan_handle_txq() 2020-01-23 19:16:12 +01:00
wlan-ng Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
wusbcore
Kconfig staging: octeon-usb: delete the octeon usb host controller driver 2019-12-17 12:54:55 +01:00
Makefile staging: exfat: add STAGING prefix to config names 2020-01-03 11:04:58 +01:00