lkml.org 
[lkml]   [2026]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [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

\
 
 \ /
  Last update: 2026-05-04 13:33    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog