summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/imx7d_adc.c
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-04-01 16:06:14 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-02 10:46:25 +0200
commit0b568b3c4ae582dc8f20960dc02dc229957ea3d3 (patch)
tree40f063f542be70916b02a7e55f710b9c2afadb6d /drivers/iio/adc/imx7d_adc.c
parentiio: gyro: adis16060: Change the name of function. (diff)
downloadlinux-0b568b3c4ae582dc8f20960dc02dc229957ea3d3.tar.xz
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/imx7d_adc.c')
-rw-r--r--drivers/iio/adc/imx7d_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/imx7d_adc.c b/drivers/iio/adc/imx7d_adc.c
index e2241ee94783..254b29a68b9d 100644
--- a/drivers/iio/adc/imx7d_adc.c
+++ b/drivers/iio/adc/imx7d_adc.c
@@ -365,7 +365,7 @@ static int imx7d_adc_read_data(struct imx7d_adc *info)
static irqreturn_t imx7d_adc_isr(int irq, void *dev_id)
{
- struct imx7d_adc *info = (struct imx7d_adc *)dev_id;
+ struct imx7d_adc *info = dev_id;
int status;
status = readl(info->regs + IMX7D_REG_ADC_INT_STATUS);