]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iio:dummy: Stop enabling timestamp by default.
authorJonathan Cameron <jic23@kernel.org>
Mon, 2 Jan 2017 19:28:33 +0000 (19:28 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 10 Jan 2017 19:54:55 +0000 (19:54 +0000)
It's bad practice and only done in this fake driver + it breaks my
attempt to take struct buffer opaque. Not worth an access function
as it shouldn't be done anyway.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/dummy/iio_simple_dummy_buffer.c

index 26bddb2464b7d574e7b11032aa5b87fa781f63b0..744ca92c3c99334fbe7f027864242f9318642c8b 100644 (file)
@@ -132,9 +132,6 @@ int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
 
        iio_device_attach_buffer(indio_dev, buffer);
 
-       /* Enable timestamps by default */
-       buffer->scan_timestamp = true;
-
        /*
         * Tell the core what device type specific functions should
         * be run on either side of buffer capture enable / disable.