diff options
| author | 2021-11-07 17:15:40 +0000 | |
|---|---|---|
| committer | 2021-11-15 08:11:53 +0000 | |
| commit | 12350633a8dbdcf7d8e0b1f726a4b58aa21e25db (patch) | |
| tree | 369f21102c9aa13d2fa0470c89a2b10a27781661 /tools/perf/scripts/python/netdev-times.py | |
| parent | media: atomisp-ov2680: Remove a bunch of unused vars from ov2680_device (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/20211107171549.267583-3-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
