[PATCH 0/3] iio: adc: ti-ads1015: modernize resource management
From: Archit Anant
Date: Sat Jul 18 2026 - 03:50:58 EST
This series modernizes the ti-ads1015 by transitioning it
to a fully devm_ architecture.
y moving resource allocation, device registration, and runtime power
management to the devm_ infrastructure, the teardown sequence is now
guaranteed to execute safely in the reverse order of initialization.
This allows for the complete removal of the ads1015_remove() function,
eliminating boilerplate code and reducing the risk of future resource
leaks.
Additionally, a minor housekeeping patch is included to ensure the
header includes remain alphabetically sorted.
Archit Anant (3):
iio: adc: ti-ads1015: sort headers alphabetically
iio: adc: ti-ads1015: use local device pointer in probe
iio: adc: ti-ads1015: convert to fully managed resources
drivers/iio/adc/ti-ads1015.c | 89 +++++++++++++++++-------------------
1 file changed, 42 insertions(+), 47 deletions(-)
--
2.39.5