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