Skip to contentSkip to conversation

iio: todo: fix typo and refine resource management items

PATCH In review Sanjay Chitroda 3 participants 3 messages Jun 13 IIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iio: todo: fix typo and refine resource management items

From: Sanjay Chitroda <[email protected]>

Fix a typo in the staging documentation path and adjust formatting of existing entries for readability.

Add TODO items to track conversion of selected drivers to device managed resource APIs and evaluate usage of cleanup.h helpers for simplifying resource management.

These updates aim to better reflect ongoing cleanup efforts within the IIO subsystem.

---
Changes in v2:
- rectify sentences/info following input comment from Andy and Jonathan
- v1 link: https://lore.kernel.org/all/[email protected]/

---
 drivers/iio/TODO | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/iio/TODO +9 -4
index 2ace27d1ac62..7b05308248d7 100644
@@ -5,12 +5,17 @@ Documentation
 tree
   - Yaml conversions for abandoned drivers
   - ABI Documentation
-  - Audit driviers/iio/staging/Documentation
+  - Audit drivers/staging/iio/Documentation
 
-- Converting drivers from device tree centric to more generic
-property handlers.
+- Converting drivers from device tree centric to generic property handlers.
 
 - Refactor old platform_data constructs from drivers and convert it
-to state struct and using property handlers and readers.
+  to state struct and using property handlers and readers.
+
+- Convert selected IIO drivers to use fully device managed resource APIs.
+
+- Evaluate and possibly adopt cleanup.h helpers (guard()(), __free(), et cetera)
+  in drivers where manual resource management is still used and there is a
+  significant improvement to the code flow and complexity to be had.
 
 Mailing list: [email protected]
Signature · 1 line
--
Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Sanjay Chitroda

Fix a typo in the staging documentation path and adjust formatting of existing entries for readability.

Add TODO items to track conversion of selected drivers to device managed resource APIs and evaluate usage of cleanup.h helpers for simplifying resource management.

These updates aim to better reflect ongoing cleanup efforts within the IIO subsystem.

No objection from me.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#2 lore raw
Quoted 9 lines · On Sat, 13 Jun 2026 16:14:24 +0300 Andy Shevchenko…
Quoted 8 lines · Sanjay Chitroda

Fix a typo in the staging documentation path and adjust formatting of existing entries for readability.

Add TODO items to track conversion of selected drivers to device managed resource APIs and evaluate usage of cleanup.h helpers for simplifying resource management.

Quoted 6 lines
Quoted 2 lines

These updates aim to better reflect ongoing cleanup efforts within the IIO subsystem.

No objection from me.

Applied to the testing branch of iio.git

Thanks,

Jonathan