]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: adxl313_core: Use devm-managed mutex initialization
authorSanjay Chitroda <sanjayembeddedse@gmail.com>
Fri, 17 Apr 2026 12:49:17 +0000 (18:19 +0530)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:19 +0000 (09:58 +0100)
commitd2ed8a2f630abe69d87eeffb2781df9237d7c1dd
tree0d9bafa0ec35062e4a2dfb098dcb271dfe75ba85
parent2e8a75ac286a51eccd51b68715960563a2ee9c4d
iio: accel: adxl313_core: 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.

Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/adxl313_core.c