[PATCH v0 03/14] drivers/iio/magnetometer/ak8975.c: fixup for the iopoll.h conversion

Andy Shevchenko
2026-04-27T20:14:24Z

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/iio/magnetometer/ak8975.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index 833ee7ca9f46..4cc92a15e937 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -657,8 +657,7 @@ static int wait_conversion_complete_gpio(struct ak8975_data *data)
int val;

/* Wait for the conversion to complete. */
- ret = readx_poll_timeout(gpiod_get_value, data->eoc_gpiod, val,
- val != 0,
+ ret = readx_poll_timeout(gpiod_get_value, data->eoc_gpiod, val, val != 0,
AK8975_CONVERSION_DONE_POLL_TIME * USEC_PER_MSEC,
AK8975_MAX_CONVERSION_TIMEOUT * USEC_PER_MSEC);
if (ret)
--
2.50.1