mirror of
https://github.com/torvalds/linux.git
synced 2026-07-29 10:41:49 +02:00
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>
This commit is contained in:
parent
1fcd1fef65
commit
833ca882b7
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user