[PATCH v2 3/5] iio: adc: ti-adc108s102: log buffer setup failure in probe

From: Prashant Rahul

Date: Sat Jun 20 2026 - 13:49:48 EST


Errors are logged when enabling the regulator or adding the cleanup
action fails, but not when buffer setup fails. Log the error returned by
the buffer setup path as well.

Signed-off-by: Prashant Rahul <prashantrahul23@xxxxxxxxx>
---
drivers/iio/adc/ti-adc108s102.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/ti-adc108s102.c b/drivers/iio/adc/ti-adc108s102.c
index 7d615e2bbf39..440afe584f5d 100644
--- a/drivers/iio/adc/ti-adc108s102.c
+++ b/drivers/iio/adc/ti-adc108s102.c
@@ -256,7 +256,7 @@ static int adc108s102_probe(struct spi_device *spi)
&adc108s102_trigger_handler,
NULL);
if (ret)
- return ret;
+ return dev_err_probe(&spi->dev, ret, "iio triggered buffer setup failed\n");

ret = devm_iio_device_register(&spi->dev, indio_dev);
if (ret)
--
2.54.0