]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: at91_adc: change at91_ts_sample to return void
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Mon, 2 Feb 2026 11:57:30 +0000 (13:57 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:00:58 +0000 (21:00 +0000)
commit70a9ae59c5b1f2f5501e78e2d85bfeefd153f854
tree395b156399fd45188e37ba36a8c06062bb690a8c
parent76878a3820b52ef463c2f63f107d37a8c6fe7bc6
iio: adc: at91_adc: change at91_ts_sample to return void

The return value of at91_ts_sample() is never checked by its caller.
Change the return type to void to make this explicit. The error
conditions are already logged via dev_err() which provides sufficient
visibility into hardware issues.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91_adc.c