[PATCH 0/7] iio: light: opt3001: driver cleanup
From: Joshua Crofts via B4 Relay
Date: Mon May 11 2026 - 06:06:02 EST
This series deals with cleaning up the TI OPT3001 sensor driver,
moving it to more modern kernel practices and improving the code style.
Changes include:
- moving the driver to use devm_* functions
- IWYU cleanups
- removal of unnecessary macros and comments
- using dev_err_probe() in probe and probe path functions
- checkpatch.pl warning cleanups
Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
---
Joshua Crofts (7):
iio: light: opt3001: make headers conform to iwyu
iio: light: opt3001: use macros from bits.h header
iio: light: opt3001: prefer dev_err_probe()
iio: light: opt3001: move driver to guard(mutex)() use
iio: light: opt3001: localize for loop iterator
iio: light: opt3001: remove unnecessary comments
iio: light: opt3001: switch driver to managed resources
drivers/iio/light/opt3001.c | 208 +++++++++++++++++++-------------------------
1 file changed, 88 insertions(+), 120 deletions(-)
---
base-commit: 74d173f29572951629d1e0b7456b424006e51b87
change-id: 20260511-opt3001-cleanup-c1411de14392
Best regards,
--
Joshua Crofts <joshua.crofts1@xxxxxxxxx>