]> git.baikalelectronics.ru Git - kernel.git/commit
iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read calls
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 5 Apr 2020 18:03:16 +0000 (19:03 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:38 +0000 (16:56 +0100)
commitb7296e2b8a6ca52399fb8c937dd76cc28a1bd266
treef7c8cd14a79f20684ce621fb021ac748aea85451
parent7caa77144b3097c1e85c1f339eaf6b11468ac841
iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read calls

regmap_bulk_read takes a void * for its val parameter. It certainly
makes no sense to cast to a (u8 *) + no need to explicitly cast
at all when converting another pointer type to void *.

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/accel/mxc4005.c