iio: adc: ina2xx: Remove bogus cast for data argument
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Fri, 8 Dec 2017 17:41:46 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:42 +0000 (16:03 +0100)
iio_push_to_buffers_with_timestamp expects a void pointer, so the cast
is both unnecessary and misleading.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ina2xx-adc.c

index ddf878163bf9fb56b8e2d8297c07e1e9fe70e18f..3195f8754c3b7acce25f6227883f42b58c040059 100644 (file)
@@ -767,8 +767,7 @@ static int ina2xx_work_buffer(struct iio_dev *indio_dev)
 
        time_b = iio_get_time_ns(indio_dev);
 
-       iio_push_to_buffers_with_timestamp(indio_dev,
-                                          (unsigned int *)data, time_a);
+       iio_push_to_buffers_with_timestamp(indio_dev, data, time_a);
 
        return (unsigned long)(time_b - time_a) / 1000;
 };