summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/sun4i-gpadc-iio.c
diff options
context:
space:
mode:
authorsimran singhal2017-04-01 16:06:14 +0200
committerJonathan Cameron2017-04-02 10:46:25 +0200
commit0b568b3c4ae582dc8f20960dc02dc229957ea3d3 (patch)
tree40f063f542be70916b02a7e55f710b9c2afadb6d /drivers/iio/adc/sun4i-gpadc-iio.c
parentiio: gyro: adis16060: Change the name of function. (diff)
downloadkernel-qcow2-linux-0b568b3c4ae582dc8f20960dc02dc229957ea3d3.tar.gz
kernel-qcow2-linux-0b568b3c4ae582dc8f20960dc02dc229957ea3d3.tar.xz
kernel-qcow2-linux-0b568b3c4ae582dc8f20960dc02dc229957ea3d3.zip
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>
Diffstat (limited to 'drivers/iio/adc/sun4i-gpadc-iio.c')
-rw-r--r--drivers/iio/adc/sun4i-gpadc-iio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c
index a8e134fa190d..e53182510150 100644
--- a/drivers/iio/adc/sun4i-gpadc-iio.c
+++ b/drivers/iio/adc/sun4i-gpadc-iio.c
@@ -382,7 +382,7 @@ static int sun4i_gpadc_runtime_resume(struct device *dev)
static int sun4i_gpadc_get_temp(void *data, int *temp)
{
- struct sun4i_gpadc_iio *info = (struct sun4i_gpadc_iio *)data;
+ struct sun4i_gpadc_iio *info = data;
int val, scale, offset;
if (sun4i_gpadc_temp_read(info->indio_dev, &val))