[PATCH 3/4] iio: magnetometer: ak8975: change 'u8*' to 'u8 *' in cast

Joshua Crofts
2026-04-20T11:09:09Z

Change 'u8*' cast to 'u8 *' as the former triggers a checkpatch error.

Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
---
drivers/iio/magnetometer/ak8975.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index d4ba96a5630..c57ff6d99f3 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -760,7 +760,7 @@ static int ak8975_read_axis(struct iio_dev *indio_dev, int index, int *val)

ret = i2c_smbus_read_i2c_block_data_or_emulated(
client, def->data_regs[index],
- sizeof(rval), (u8*)&rval);
+ sizeof(rval), (u8 *)&rval);
if (ret < 0)
goto exit;

--
2.47.3