iio: adc: ina2xx: Remove bogus cast for data argument

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>
This commit is contained in:
Stefan Brüns 2017-12-08 18:41:46 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель ab569a4c55
Коммит 17b3453f5c
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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;
};