diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-02-23 18:21:01 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-02-24 17:41:42 +0000 |
| commit | e02902dd493bf9c9b05353c761737ac514ad7a5c (patch) | |
| tree | 375453a5323e630aa41f161996cb062149fe5bfa /tools/perf/scripts/python/stackcollapse.py | |
| parent | 507a071d9868cb60e4e76f8a06fc8eb014f59ae4 (diff) | |
spi: add devm_spi_new_ancillary_device()
Add a devres-managed version of spi_new_ancillary_device() that
automatically unregisters the ancillary SPI device when the parent
device is removed.
This follows the same devm_add_action_or_reset() pattern used by the
other managed SPI functions (devm_spi_optimize_message,
devm_spi_register_controller, etc.) and eliminates the need for drivers
to open-code their own devm cleanup callbacks for ancillary devices.
Acked-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://patch.msgid.link/20260223162110.156746-3-antoniu.miclaus@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
