summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/itg3200_buffer.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-09-15 17:50:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-09-15 19:05:07 +0100
commit8c60c7e75de79fe429afea3c7300d010c091bc4e (patch)
tree81aa0ec318da5d305f06f7944017732a7f63dd5b /drivers/iio/gyro/itg3200_buffer.c
parent5d65d92045cb7d3b2c45020c0e62d6d1c1d34f37 (diff)
downloadlinux-8c60c7e75de79fe429afea3c7300d010c091bc4e.tar.bz2
iio: Remove unnecessary casts for iio_push_to_buffers()
Now that iio_push_to_buffers() takes a void pointer for the data parameter we can remove those casts to u8*. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro/itg3200_buffer.c')
-rw-r--r--drivers/iio/gyro/itg3200_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/gyro/itg3200_buffer.c b/drivers/iio/gyro/itg3200_buffer.c
index 6c43af9bb0a4..6b3c30118c48 100644
--- a/drivers/iio/gyro/itg3200_buffer.c
+++ b/drivers/iio/gyro/itg3200_buffer.c
@@ -59,7 +59,7 @@ static irqreturn_t itg3200_trigger_handler(int irq, void *p)
memcpy(buf + indio_dev->scan_bytes - sizeof(s64),
&pf->timestamp, sizeof(pf->timestamp));
- iio_push_to_buffers(indio_dev, (u8 *)buf);
+ iio_push_to_buffers(indio_dev, buf);
iio_trigger_notify_done(indio_dev->trig);
error_ret: