Re: [PATCH v5 05/18] iio: magnetometer: ak8975: fix wrong errno on return
From: Jonathan Cameron
Date: Wed May 06 2026 - 12:41:32 EST
On Tue, 05 May 2026 13:46:01 +0200
Joshua Crofts via B4 Relay <devnull+joshua.crofts1.gmail.com@xxxxxxxxxx> wrote:
> From: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
>
> The driver currently returns -EINVAL on polling timeout instead of
> -ETIMEDOUT.
>
> Replace return code for -ETIMEDOUT and remove unnecessary error
> message as -ETIMEDOUT is a standard POSIX error. Also replace
> instances of -EINVAL in comments.
>
> Suggested-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
Applied.
Tah