]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: imu: inv_icm42600: use guard() to release mutexes
authorSean Nyekjaer <sean@geanix.com>
Tue, 9 Sep 2025 07:11:11 +0000 (09:11 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:50:03 +0000 (19:50 +0100)
commit661facba437e37c1685606825b9fd59be3f78771
tree81be26469a9c87c831174a62dcd3b772fdf89f45
parentee8fc40257bc7cf6100fdf0b1cd770dc264f6c2e
iio: imu: inv_icm42600: use guard() to release mutexes

Replace explicit mutex_lock() and mutex_unlock() with the guard() macro
for cleaner and safer mutex handling.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c