]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7791: Factor out core of ad7791_write_raw() to simplify error handling
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Feb 2025 14:16:15 +0000 (14:16 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Mar 2025 13:17:49 +0000 (13:17 +0000)
commitc05cbf02df282c1f6825ef99634fb7dcb2fc3da8
tree98e6bc5c061e41350fe4df70115902e7e40b3344
parent15bed4f0cbf149232b0e17d64a178230b2f21be9
iio: adc: ad7791: Factor out core of ad7791_write_raw() to simplify error handling

Factor out everything under the direct mode claim allowing direct returns
in error paths.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250217141630.897334-16-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7791.c