]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: si1133: use guard(mutex)() macro
authorJoshua Crofts <joshua.crofts1@gmail.com>
Tue, 5 May 2026 07:31:33 +0000 (09:31 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:35 +0000 (10:59 +0100)
commitd0b396cab2f7d56126a9b36dba9d6c52292aa7bc
tree5d6b7412c6757e34018816f25c7d5b91e9e7ea98
parent82108871f44483ab7e0291f1c70b5461ed233ab8
iio: light: si1133: use guard(mutex)() macro

Remove mutex_lock()/mutex_unlock() and goto instances and add
guard(mutex)() macro to modernize driver and improve mutex handling.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/si1133.c