| From | Joshua Crofts <> | | Date | Mon, 4 May 2026 13:33:10 +0200 | | Subject | Re: [PATCH v4 07/17] iio: magnetometer: ak8975: pass conversion timeouts as arguments |
| |
On Mon, 4 May 2026 at 11:48, Joshua Crofts via B4 Relay <devnull+joshua.crofts1.gmail.com@kernel.org> wrote: > @@ -708,6 +705,11 @@ static int wait_conversion_complete_interrupt(struct ak8975_data *data) > static int ak8975_start_read_axis(struct ak8975_data *data, > const struct i2c_client *client) > { > + int irq_timeout_ms = 100; > + int timeout_ms = 500; > + int poll_ms = 10; > + int ret; > + > /* Set up the device for taking a sample. */ > int ret = ak8975_set_mode(data, MODE_ONCE);
BTW, also noticed a redefinition error here.
-- Kind regards
CJD
|