diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-09-20 20:05:23 +0200 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-25 03:22:44 +0100 |
| commit | bfd157106848b2e2b2b77db2e5c3964aeab74b5c (patch) | |
| tree | 3f49aa43f3f3a72305e60f40cbb9b259c088acb1 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cdc7d3dd101251a6373332726b8d6fad35e83b8a (diff) | |
| download | linux-next-bfd157106848b2e2b2b77db2e5c3964aeab74b5c.tar.gz linux-next-bfd157106848b2e2b2b77db2e5c3964aeab74b5c.zip | |
iio: magnetometer: ak8975: switch to using managed resources
Switch the driver to use managed resources (devm_*) which simplifier
error handling and allows removing ak8975_remove() method from
the driver.
Note, on error path we now also set mode to POWER_DOWN state which is
fine. Even if the device is in that mode, there is no problem to set
that mode again, it should be no-op.
Additionally, remove any pm_runtime_get/put*() function calls that
dummy cycled the counter to autosuspend the device.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Co-developed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
