]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: vf610: Move claim of direct mode to caller of vf610_read_sample and use...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Mar 2025 16:58:12 +0000 (16:58 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:09:55 +0000 (19:09 +0100)
commit16d92b70b261882a1360f7c25a6bc8b92ae52a6e
treeb673afe9fcbf3dacd72c331076a9f135879ea843
parentcfed1969fcfe69d0b0db780efe2b6fedeaf7f2b3
iio: adc: vf610: Move claim of direct mode to caller of vf610_read_sample and use guard(mutex)

These two changes allow direct returns in all paths, improving code
readablity.

Cc: Frank Li <Frank.Li@nxp.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250309165819.1346684-2-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/vf610_adc.c