]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: magnetometer: ak8975: reduce usage of magic lengths of the buffer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 May 2026 11:46:08 +0000 (13:46 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:36 +0000 (10:59 +0100)
commitdbb1f2fa2bba8df30927419d8cb7c56016452a5c
treeddf9690ced2bafe311f33bfc40c7d6d91942420f
parent77e75249448a9b40b5a1a21756fd5a4c9573aa5b
iio: magnetometer: ak8975: reduce usage of magic lengths of the buffer

Reduce usage of magic lengths of the supplied buffer by replacing them
with the corresponding sizeof():s.

Signed-off-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