summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-04-01 16:11:53 +0200
committerJonathan Cameron <jic23@kernel.org>2017-04-02 10:48:50 +0200
commit4d925083e8f9f0c619fe212cfd0729c3dc1442b2 (patch)
treeee49c3cf53aa275170e0fd19de92c9035cfdc304 /drivers
parentiio: common: ms_sensors: Remove unnecessary cast on void pointer (diff)
downloadlinux-4d925083e8f9f0c619fe212cfd0729c3dc1442b2.tar.xz
linux-4d925083e8f9f0c619fe212cfd0729c3dc1442b2.zip
iio: dac: ad5504: 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')
-rw-r--r--drivers/iio/dac/ad5504.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5504.c b/drivers/iio/dac/ad5504.c
index 22a027de498a..712d86b4be09 100644
--- a/drivers/iio/dac/ad5504.c
+++ b/drivers/iio/dac/ad5504.c
@@ -223,7 +223,7 @@ static irqreturn_t ad5504_event_handler(int irq, void *private)
0,
IIO_EV_TYPE_THRESH,
IIO_EV_DIR_RISING),
- iio_get_time_ns((struct iio_dev *)private));
+ iio_get_time_ns(private));
return IRQ_HANDLED;
}