summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dummy
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2017-01-02 20:28:33 +0100
committerJonathan Cameron <jic23@kernel.org>2017-01-10 20:54:55 +0100
commitc56b7d80e376a00d3a29e7854359116f68ce66c5 (patch)
tree4ef2d647376878ecd14aaae667608956523da314 /drivers/iio/dummy
parentiio:buffer: Push implementation of iio_device_attach_buffer into .c file (diff)
downloadlinux-c56b7d80e376a00d3a29e7854359116f68ce66c5.tar.xz
linux-c56b7d80e376a00d3a29e7854359116f68ce66c5.zip
iio:dummy: Stop enabling timestamp by default.
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>
Diffstat (limited to 'drivers/iio/dummy')
-rw-r--r--drivers/iio/dummy/iio_simple_dummy_buffer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iio/dummy/iio_simple_dummy_buffer.c b/drivers/iio/dummy/iio_simple_dummy_buffer.c
index 26bddb2464b7..744ca92c3c99 100644
--- a/drivers/iio/dummy/iio_simple_dummy_buffer.c
+++ b/drivers/iio/dummy/iio_simple_dummy_buffer.c
@@ -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.