diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2024-08-16 12:32:00 +0000 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-08-31 09:40:43 +0200 |
commit | 820d81a167d422027ca4af7f0511e101f21aa214 (patch) | |
tree | 5968a42b58b7a2e8b1d2b40cf4b4483a5e4b40b1 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2933d7e12ed792e12ab690efd15f6e7ce81ba739 (diff) |
media: i2c: ov5645: Refactor ov5645_set_power_off()
Factor out all the power off logic, except clk_disable_unprepare(), to a
new function __ov5645_set_power_off().
This allows ov5645_set_power_on() to excplicitly clean-out the clock
during the error-path.
The following smatch warning is fixed:
drivers/media/i2c/ov5645.c:690 ov5645_set_power_on() warn: 'ov5645->xclk' from clk_prepare_enable() not released on lines: 690.
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions