]> git.baikalelectronics.ru Git - kernel.git/commit
iio:imu:mpu6050: Tidy up parameters to regmap_bulk functions.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 5 Apr 2020 18:03:19 +0000 (19:03 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:39 +0000 (16:56 +0100)
commit2d84d795cca5256a2f5534668139fa8e84276ecb
treeb8a4387638c7213307b9319c7c1efc652828e990
parent8e88937a86fb497f1350cfb560535406b3d05f8a
iio:imu:mpu6050: Tidy up parameters to regmap_bulk functions.

A mixture of:
* Casts to u8 * for the val parameter which is void * and so needs no cast.
* Explicit sizes when we can use sizeof on the destination / source variable.

Not broken in anyway, I'm just trying to tidy up the is in the subsystem to
avoid it getting cut and paste into new drivers.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c