iio: adc: ad7173: Clear append status bit
authorDumitru Ceclan <dumitru.ceclan@analog.com>
Thu, 30 May 2024 12:07:52 +0000 (15:07 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 3 Jun 2024 18:05:19 +0000 (19:05 +0100)
commit18befe4a28403f599115c5ae753cc7f5157af8b7
treea07b6e17391d50419df33af75bd7963705bc4f80
parent245f3b149e6cc3ac6ee612cdb7042263bfc9e73c
iio: adc: ad7173: Clear append status bit

The previous value of the append status bit was not cleared before
setting the new value. This caused the bit to remain set after enabling
buffered mode for multiple channels and not permit further buffered
reads from a single channel after the fact.

Fixes: 76a1e6a42802 ("iio: adc: ad7173: add AD7173 driver")
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
Link: https://lore.kernel.org/r/20240530-ad7173-fixes-v3-4-b85f33079e18@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c