summaryrefslogtreecommitdiff
path: root/drivers/nvmem/sunxi_sid.c
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-11-19 17:35:47 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-12 17:01:48 +0100
commit4eec1919c9585d12526dced3de64c1d95c7fc451 (patch)
tree6d99be9157c7f1dd0c15fb690cf11f1030b81001 /drivers/nvmem/sunxi_sid.c
parent2f038c97fd7baaf9508cf32998a5f8f1ddc09a5e (diff)
downloadlinux-4eec1919c9585d12526dced3de64c1d95c7fc451.tar.gz
media: ov5647: Apply controls only when powered
Use pm_runtime_get_if_in_use() in s_ctrl to apply controls only when the device is powered on. Rework the control set function to balance the pm_runtime_get_if_in_use() call with pm_runtime_put() at the end of the function. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/nvmem/sunxi_sid.c')
0 files changed, 0 insertions, 0 deletions