mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
iio: light: zopt2201: use lock guards
Use guard() and scoped_guard() to handle the mutex lock instead of manually locking and unlocking it. Signed-off-by: Gabriel Almeida <gabrielsousa230@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
f808d21ef7
commit
08eea726f4
1 changed files with 13 additions and 23 deletions
Loading…
Add table
Add a link
Reference in a new issue