[PATCH v4 04/17] iio: magnetometer: ak8975: change 'u8*' to 'u8 *' in cast

Joshua Crofts via B4 Relay
2026-05-04T09:48:34Z

From: Joshua Crofts <joshua.crofts1@gmail.com>

Change 'u8*' cast to 'u8 *' as the former triggers a checkpatch error.
Also fix the indentation of parameters in
i2c_smbus_read_i2c_block_data_or_emulated() function.

No functional change.

Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
---
drivers/iio/magnetometer/ak8975.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index a84a05a1b64280e26c428e9752a39380e386c234..6ca8c24b9fba452b6fed8155957a8e5fcbc6511c 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -759,9 +759,10 @@ static int ak8975_read_axis(struct iio_dev *indio_dev, int index, int *val)
if (ret)
goto exit;

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

--
2.47.3