iio: dac: adi-axi-dac: use unique bus free check
authorAngelo Dureghello <adureghello@baylibre.com>
Fri, 23 May 2025 09:00:52 +0000 (11:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Jun 2025 06:45:35 +0000 (07:45 +0100)
commit9182f3b4c370b7e779dca569c672b9ad22fd23d6
tree7cebab1e1f34b99602278b10384955153541130c
parent1543572fffb3131c003f23be8b65083d6e2f611c
iio: dac: adi-axi-dac: use unique bus free check

Use a unique function for the bus free check by polling, to reduce
duplicated code. An error is always thrown in case of timeout.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250523-ad3552r-fix-bus-read-v3-2-310e726dd964@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/adi-axi-dac.c