diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2023-08-25 17:56:12 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-09-11 20:12:40 +0100 |
commit | 5ff46635e4c51a2aeafb50a06c36bfdd0cda4203 (patch) | |
tree | c89529e84435cc1300743979348490b6074da47b /Documentation/devicetree/bindings/iio/adc | |
parent | a2d518fbe3760f66576a5c4f627aa3f126271c8b (diff) | |
download | linux-stable-5ff46635e4c51a2aeafb50a06c36bfdd0cda4203.tar.gz linux-stable-5ff46635e4c51a2aeafb50a06c36bfdd0cda4203.tar.bz2 linux-stable-5ff46635e4c51a2aeafb50a06c36bfdd0cda4203.zip |
staging: iio: Use devm_clk_get_enabled() helper function
The devm_clk_get_enabled() helper:
- calls devm_clk_get()
- calls clk_prepare_enable() and registers what is needed in order to
call clk_disable_unprepare() when needed, as a managed resource.
This simplifies the code and avoids the need of a dedicated function used
with devm_add_action_or_reset().
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230825095612.2972892-1-ruanjinjie@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/adc')
0 files changed, 0 insertions, 0 deletions