]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ad7606: use devm_mutex_init()
authorDavid Lechner <dlechner@baylibre.com>
Tue, 18 Mar 2025 22:52:12 +0000 (17:52 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:54 +0000 (19:09 +0100)
commit37fd5e6e0f33031e06c0406f289bcb2dcf4a1f4b
tree5fc530d752de26c511d13936bd54ca2b7eff0852
parent40fa5f535dd7968fd8a602766f9cb9774afb425b
iio: adc: ad7606: use devm_mutex_init()

Use devm_mutex_init() in ad7606_probe(). Mutexes should be cleaned up
on driver removal.

Also add missing include while we are touching this.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250318-iio-adc-ad7606-improvements-v2-4-4b605427774c@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c