summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2023-08-25 18:57:44 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-09-11 20:12:39 +0100
commita3e9625ec0c523cba3847ae21c382ae745e71d19 (patch)
treed9a15e68302482cb6007eb37b31f1915e773c02c /tools/perf/scripts/python
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
downloadlinux-a3e9625ec0c523cba3847ae21c382ae745e71d19.tar.gz
linux-a3e9625ec0c523cba3847ae21c382ae745e71d19.zip
iio: adc: mt6577_auxadc: 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. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20230825105746.2999548-3-ruanjinjie@huawei.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions