]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: at91-sama5d2_adc: check return status for pressure and touch
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 3 Aug 2022 10:28:38 +0000 (13:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:33 +0000 (13:22 +0200)
commitd614e6ea9a238e779a48336e8ac5d2b92c1d1e34
treeea6d21769f4115ca60071405cf52e6d904be6564
parent3b8404103d538133d5024f036c0744859ecde177
iio: adc: at91-sama5d2_adc: check return status for pressure and touch

[ Upstream commit 5cb16a24a370f29e794eabd05a56ec9b40af9658 ]

Check return status of at91_adc_read_position() and
at91_adc_read_pressure() in at91_adc_read_info_raw().

Fixes: 889daf95b48e ("iio: adc: at91-sama5d2_adc: add support for oversampling resolution")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220803102855.2191070-3-claudiu.beznea@microchip.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/at91-sama5d2_adc.c