iio: light: veml6070: use guard to handle mutex
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Sun, 29 Sep 2024 20:38:47 +0000 (22:38 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Oct 2024 11:09:15 +0000 (12:09 +0100)
commitfc38525135dd114303c85cb84ecbe156adb8ff7f
treea86da82fb5845679e4b5a479cb0fc245a6178a36
parent7501bff87c3ec6b3d0ec2c75ca0109d70521f7d5
iio: light: veml6070: use guard to handle mutex

Simplify the mutext handling by using a guard to automate the mutex
unlocking.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240929-veml6070-cleanup-v1-2-a9350341a646@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml6070.c