Commit 2432e1ae authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron

staging: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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 8c60c7e7
...@@ -150,7 +150,7 @@ static irqreturn_t lis3l02dq_trigger_handler(int irq, void *p) ...@@ -150,7 +150,7 @@ static irqreturn_t lis3l02dq_trigger_handler(int irq, void *p)
if (indio_dev->scan_timestamp) if (indio_dev->scan_timestamp)
*(s64 *)((u8 *)data + ALIGN(len, sizeof(s64))) *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
= pf->timestamp; = pf->timestamp;
iio_push_to_buffers(indio_dev, (u8 *)data); iio_push_to_buffers(indio_dev, data);
kfree(data); kfree(data);
done: done:
......
...@@ -631,7 +631,7 @@ static irqreturn_t mxs_lradc_trigger_handler(int irq, void *p) ...@@ -631,7 +631,7 @@ static irqreturn_t mxs_lradc_trigger_handler(int irq, void *p)
*timestamp = pf->timestamp; *timestamp = pf->timestamp;
} }
iio_push_to_buffers(iio, (u8 *)lradc->buffer); iio_push_to_buffers(iio, lradc->buffer);
iio_trigger_notify_done(iio->trig); iio_trigger_notify_done(iio->trig);
......
...@@ -86,7 +86,7 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p) ...@@ -86,7 +86,7 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p)
if (indio_dev->scan_timestamp) if (indio_dev->scan_timestamp)
*(s64 *)((u8 *)data + ALIGN(len, sizeof(s64))) *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
= iio_get_time_ns(); = iio_get_time_ns();
iio_push_to_buffers(indio_dev, (u8 *)data); iio_push_to_buffers(indio_dev, data);
kfree(data); kfree(data);
......
...@@ -676,7 +676,7 @@ static void ad5933_work(struct work_struct *work) ...@@ -676,7 +676,7 @@ static void ad5933_work(struct work_struct *work)
} else { } else {
buf[0] = be16_to_cpu(buf[0]); buf[0] = be16_to_cpu(buf[0]);
} }
iio_push_to_buffers(indio_dev, (u8 *)buf); iio_push_to_buffers(indio_dev, buf);
} else { } else {
/* no data available - try again later */ /* no data available - try again later */
schedule_delayed_work(&st->work, st->poll_time_jiffies); schedule_delayed_work(&st->work, st->poll_time_jiffies);
......
...@@ -73,7 +73,7 @@ static irqreturn_t ade7758_trigger_handler(int irq, void *p) ...@@ -73,7 +73,7 @@ static irqreturn_t ade7758_trigger_handler(int irq, void *p)
if (indio_dev->scan_timestamp) if (indio_dev->scan_timestamp)
dat64[1] = pf->timestamp; dat64[1] = pf->timestamp;
iio_push_to_buffers(indio_dev, (u8 *)dat64); iio_push_to_buffers(indio_dev, dat64);
iio_trigger_notify_done(indio_dev->trig); iio_trigger_notify_done(indio_dev->trig);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment