Skip to content

Commit 833ca88

Browse files
cjd8jic23
authored andcommitted
iio: magnetometer: ak8975: change 'u8*' to 'u8 *' in cast
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> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Reviewed-by: Maxwell Doose <m32285159@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 1fcd1fe commit 833ca88

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/iio/magnetometer/ak8975.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,10 @@ static int ak8975_read_axis(struct iio_dev *indio_dev, int index, int *val)
759759
if (ret)
760760
goto exit;
761761

762-
ret = i2c_smbus_read_i2c_block_data_or_emulated(
763-
client, def->data_regs[index],
764-
sizeof(rval), (u8*)&rval);
762+
ret = i2c_smbus_read_i2c_block_data_or_emulated(client,
763+
def->data_regs[index],
764+
sizeof(rval),
765+
(u8 *)&rval);
765766
if (ret < 0)
766767
goto exit;
767768

0 commit comments

Comments
 (0)