]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: proximity: rfd77402: Use devm-managed mutex initialization
authorShrikant Raskar <raskar.shree97@gmail.com>
Wed, 28 Jan 2026 17:51:51 +0000 (23:21 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 29 Jan 2026 17:48:45 +0000 (17:48 +0000)
commitdff4bdff074e1f92874676bed57970d19e3a86bd
tree52848b7dba4fdd98707c583769d4e89a0d079bcd
parent51eedb3a323ae87872c4cb60cc6abed696b0a822
iio: proximity: rfd77402: Use devm-managed mutex initialization

Use devm_mutex_init() to tie the mutex lifetime to the device and
improve debugging when CONFIG_DEBUG_MUTEXES is enabled.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/rfd77402.c