]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: rpr0521: Factor out handling of IIO_INFO_RAW and use guard()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Mar 2025 17:06:26 +0000 (17:06 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:56 +0000 (19:09 +0100)
commit9c97c7d2a9019da73c87839ccb4baa3d75095fc0
treeef022eccfc87f8dcae0ae97480c756980b2ad56b
parente08acc4c82a3305c1c9c57d2f148d4d21ae949ce
iio: light: rpr0521: Factor out handling of IIO_INFO_RAW and use guard()

Factor out the code which is only called with the direct mode claimed.
This and the use of guard(mutex) allows direct returns simplifying
code flow.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250309170633.1347476-12-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/rpr0521.c