]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: adxl367: Use devm-managed mutex initialization
authorSanjay Chitroda <sanjayembeddedse@gmail.com>
Fri, 17 Apr 2026 12:49:22 +0000 (18:19 +0530)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:19 +0000 (09:58 +0100)
commitf710a0fa462ce5fc356ab4a77787b49fc1f47f7b
tree5cde9c3d42ec79dcb4499c2b03a43c023da4c845
parent70cc2c65c23ba212c6de61a727131ebf94a66610
iio: accel: adxl367: 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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/adxl367.c