staging:iio: Remove unnecessary casts for iio_push_to_buffers()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 15 Sep 2013 16:50:00 +0000 (17:50 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Sep 2013 18:05:51 +0000 (19:05 +0100)
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>
drivers/staging/iio/accel/lis3l02dq_ring.c
drivers/staging/iio/adc/mxs-lradc.c
drivers/staging/iio/iio_simple_dummy_buffer.c
drivers/staging/iio/impedance-analyzer/ad5933.c
drivers/staging/iio/meter/ade7758_ring.c

index 5b8f0f6c99385d409ba471acfe902a041518da38..36dcc7e0b90dea3260ab806ac52a1d36a4c8a65e 100644 (file)
@@ -150,7 +150,7 @@ static irqreturn_t lis3l02dq_trigger_handler(int irq, void *p)
        if (indio_dev->scan_timestamp)
                *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
                        = pf->timestamp;
-       iio_push_to_buffers(indio_dev, (u8 *)data);
+       iio_push_to_buffers(indio_dev, data);
 
        kfree(data);
 done:
index f36cde5066903762dacfed3f427a91349cc00579..7401230d3c33372abb7b913bd89d05d1b6751d90 100644 (file)
@@ -631,7 +631,7 @@ static irqreturn_t mxs_lradc_trigger_handler(int irq, void *p)
                *timestamp = pf->timestamp;
        }
 
-       iio_push_to_buffers(iio, (u8 *)lradc->buffer);
+       iio_push_to_buffers(iio, lradc->buffer);
 
        iio_trigger_notify_done(iio->trig);
 
index 72f400c3cbcbbdc88391a02ae14cb87fc589d2da..3921865fecd624e26069f9b1d7ecc2606e8ac23d 100644 (file)
@@ -86,7 +86,7 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p)
        if (indio_dev->scan_timestamp)
                *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
                        = iio_get_time_ns();
-       iio_push_to_buffers(indio_dev, (u8 *)data);
+       iio_push_to_buffers(indio_dev, data);
 
        kfree(data);
 
index 00f70679a2bd720dfcdef9b772be954c47c168fa..712f3c22ce64ab19c0c7fc19964e86afbddd9ebe 100644 (file)
@@ -676,7 +676,7 @@ static void ad5933_work(struct work_struct *work)
                } else {
                        buf[0] = be16_to_cpu(buf[0]);
                }
-               iio_push_to_buffers(indio_dev, (u8 *)buf);
+               iio_push_to_buffers(indio_dev, buf);
        } else {
                /* no data available - try again later */
                schedule_delayed_work(&st->work, st->poll_time_jiffies);
index 7d5db71755788372638035b49917e5470cf4bc68..3d8bc2dbbc9ce07ac0d0aeb0d91948480a6ef891 100644 (file)
@@ -73,7 +73,7 @@ static irqreturn_t ade7758_trigger_handler(int irq, void *p)
        if (indio_dev->scan_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);