summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-04-01 17:11:53 +0300
committerJonathan Cameron <jic23@kernel.org>2017-04-02 11:48:50 +0300
commit4d925083e8f9f0c619fe212cfd0729c3dc1442b2 (patch)
treeee49c3cf53aa275170e0fd19de92c9035cfdc304 /drivers/iio
parent6c6c0987f94f9f5539d0f97e588383b0c5c6f458 (diff)
downloadlinux-4d925083e8f9f0c619fe212cfd0729c3dc1442b2.tar.xz
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/iio')
-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;
}