]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c55c07bc2572296cea60af57569a328e3b67234
tree40f063f542be70916b02a7e55f710b9c2afadb6d
parent707e7f6a195857800044d84ecfcaeefa1eaf8542
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