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

David Lechner
2026-04-10T20:03:35Z

On 4/10/26 2:37 PM, David Carlier wrote:
>
> 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()
>

Jonathan has mentioned before that he doesn't care to take patches like this
unless we are making other cleanups to the driver too. So we'll see what he
says this time.