diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-10-16 18:09:48 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-11-23 19:44:04 +0000 |
commit | c247e0d8c0d50793f459d2a7997d2f8f2105c973 (patch) | |
tree | 06aa9fb14f754f07f0cb7e642d8191e4ba7d3d3f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dc0ba516d103532b7f289b20119374fe3797f81b (diff) |
iio: adc: cc10001: Use devm_clk_get_enabled() to avoid boilerplate.
As this driver just enables clock in probe() and disables in remove()
we can use this new function to replace boilerplate and simplify
error paths.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20221016170950.387751-4-jic23@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions