[PATCH 0/7] iio: dac: Convert several drivers to devm_mutex_init()

David Carlier
2026-04-10T19:37:44Z

This series converts seven iio DAC/ADDAC drivers to use devm_mutex_init()
instead of mutex_init(). These drivers currently call mutex_init() in
probe but have no .remove() callback, so mutex_destroy() is never called
on device unbind.

Same pattern already accepted in iio for other drivers (e.g. ad5446,
ltc2688, ad7124, ad7606, vcnl4000, etc.).

David Carlier (7):
iio: dac: ad3552r: Use devm_mutex_init()
iio: dac: ad7303: Use devm_mutex_init()
iio: dac: ad5758: Use devm_mutex_init()
iio: dac: ad5755: Use devm_mutex_init()
iio: dac: ad5686: Use devm_mutex_init()
iio: dac: ltc2664: Use devm_mutex_init()
iio: addac: ad74115: Use devm_mutex_init()

drivers/iio/addac/ad74115.c | 5 ++++-
drivers/iio/dac/ad3552r.c | 4 +++-
drivers/iio/dac/ad5686.c | 4 +++-
drivers/iio/dac/ad5755.c | 5 +++--
drivers/iio/dac/ad5758.c | 4 +++-
drivers/iio/dac/ad7303.c | 4 +++-
drivers/iio/dac/ltc2664.c | 4 +++-
7 files changed, 22 insertions(+), 8 deletions(-)

--
2.53.0