]> git.baikalelectronics.ru Git - kernel.git/commit
iio:chemical:atlas-sensor: Drop unnecessary explicit casts in regmap_bulk_read calls
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 5 Apr 2020 18:03:17 +0000 (19:03 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:39 +0000 (16:56 +0100)
commite373f961c1ba9f271b27880465ab8ce0094affc5
tree3364d9b9a5177520e10c380f91b7a0214379a9ad
parentb7296e2b8a6ca52399fb8c937dd76cc28a1bd266
iio:chemical:atlas-sensor: 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>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
drivers/iio/chemical/atlas-sensor.c