]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ti-ads131e08: return correct error code
authorDixit Parmar <dixitparmar19@gmail.com>
Sat, 11 Oct 2025 08:11:49 +0000 (13:41 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Oct 2025 10:59:22 +0000 (11:59 +0100)
commitf277fe2ff54aeea3b5c31aa045f03ccea612a299
treea51d9a92d7581d4a7ae920644b2bbec3177082d2
parentd34ad6467200380c8f8337ceefee9f3d8cee5492
iio: adc: ti-ads131e08: return correct error code

The error code returned from devm_iio_trigger_register() inturn
iio_trigger_register() can be other than -ENOMEM. Hence return the
same value as it was returned from the function call.
This change makes devm_iio_trigger_register() handling uniform with
other iio drivers.

Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads131e08.c