]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: magnetometer: ak8975: fix wrong errno on return
authorJoshua Crofts <joshua.crofts1@gmail.com>
Tue, 5 May 2026 11:46:01 +0000 (13:46 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:36 +0000 (10:59 +0100)
commitacea3560f387a749990567e151e6003ccc249e46
tree978a46a0df905972a26a23de617f15726b347141
parent833ca882b76425a7ec12cc8090a390959d0b190f
iio: magnetometer: ak8975: fix wrong errno on return

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@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c