iio: adc: Remove unnecessary cast on void pointer
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 1 Apr 2017 14:06:14 +0000 (19:36 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Apr 2017 08:46:25 +0000 (09:46 +0100)
commit0b568b3c4ae582dc8f20960dc02dc229957ea3d3
tree40f063f542be70916b02a7e55f710b9c2afadb6d
parent5a70925b16f2ad3d68dd6ecc469c9507d9a18e6a
iio: adc: Remove unnecessary cast on void pointer

The following Coccinelle script was used to detect this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T*)x)->f
|
- (T*)
  e
)

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/exynos_adc.c
drivers/iio/adc/imx7d_adc.c
drivers/iio/adc/max1027.c
drivers/iio/adc/rockchip_saradc.c
drivers/iio/adc/sun4i-gpadc-iio.c
drivers/iio/adc/vf610_adc.c