aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2021-11-07 17:15:40 +0000
committerMauro Carvalho Chehab <[email protected]>2021-11-15 08:11:53 +0000
commit12350633a8dbdcf7d8e0b1f726a4b58aa21e25db (patch)
tree369f21102c9aa13d2fa0470c89a2b10a27781661 /tools/perf/scripts/python/bin
parent83b1e1efe5ed113df37d0841683aafd69a19988b (diff)
media: atomisp-ov2680: Turn on power only once
Add a power_on bool to track if the power is on, and make power_up() a no-op if the power is already on. This also removes a power_down() call from ov2680_s_config() since that is a no-op now, this is ok because s_config() is only called once on probe and the sensor is off at boot. Besides avoiding to the work in power_up() multiple times this patch is also a preparation for switching to the clk and regulator frameworks which keep an enable count, so there we must call enable() and disable() only once per power-cycle. Link: https://lore.kernel.org/linux-media/[email protected] Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions