aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJinjie Ruan <[email protected]>2023-08-26 14:27:31 +0800
committerJonathan Cameron <[email protected]>2023-09-11 20:12:39 +0100
commit3878ae2a1a7636be7009e20b48d4fc00adab8cf4 (patch)
tree1ccfeea2292e227d04bb1fcf030d7f96d57b74ea /tools/perf/scripts/python
parenta3e9625ec0c523cba3847ae21c382ae745e71d19 (diff)
iio: adc: spear_adc: Use device managed 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. Switch to devm_iio_device_register() and drop the remove function. This simplifies the code. Signed-off-by: Jinjie Ruan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions