diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-10-16 20:09:48 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-11-23 22:44:04 +0300 |
commit | c247e0d8c0d50793f459d2a7997d2f8f2105c973 (patch) | |
tree | 06aa9fb14f754f07f0cb7e642d8191e4ba7d3d3f /drivers/iio/adc/ad7606_spi.c | |
parent | dc0ba516d103532b7f289b20119374fe3797f81b (diff) | |
download | linux-c247e0d8c0d50793f459d2a7997d2f8f2105c973.tar.xz |
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 'drivers/iio/adc/ad7606_spi.c')
0 files changed, 0 insertions, 0 deletions