iio: adc: ad7173: add openwire detection support for single conversions
authorGuillaume Ranquet <granquet@baylibre.com>
Mon, 27 Jan 2025 13:59:33 +0000 (14:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Feb 2025 15:16:29 +0000 (15:16 +0000)
commit7530ed2aaa3f49325cad3ca80aa245897ed10e32
treeeb776f83bf84bdec67032161c8db272ab806dffc
parent34934d79965518548d33c0513a9572ae936d8c29
iio: adc: ad7173: add openwire detection support for single conversions

Some chips of the ad7173 family supports open wire detection.

Generate a level fault event whenever an external source is disconnected
from the system input on single conversions.

Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250127-ad4111_openwire-v5-2-ef2db05c384f@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c