Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d925083 authored by simran singhal's avatar simran singhal Committed by Jonathan Cameron
Browse files

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: default avatarsimran singhal <singhalsimran0@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 6c6c0987
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}