diff options
| author | Alexandru Ardelean <[email protected]> | 2021-05-13 15:07:49 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-06-13 17:00:16 +0100 |
| commit | c9ec2cb328e3273327efad09f99f3744a778108a (patch) | |
| tree | a735253b8f25c6d40df618d64b70055be3f88e4e /tools/perf/scripts/python/bin | |
| parent | e50aab18dd7fbfb7419d0b9c4b4e45251f36beb8 (diff) | |
iio: adc: ad7192: use devm_clk_get_optional() for mclk
The devm_clk_get_optional() helper returns NULL when devm_clk_get() returns
-ENOENT.
This makes things slightly cleaner. The added benefit is mostly cosmetic.
Also, a minor detail with this call, is that the reference for the parent
device is taken as `spi->dev` instead of `&st->sd.spi->dev` (which looks a
little quirky).
Signed-off-by: Alexandru Ardelean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions