iio: Remove unused iio_sw_buffer_preenable()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 14 Oct 2013 16:49:00 +0000 (17:49 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 16 Oct 2013 18:17:06 +0000 (19:17 +0100)
The functionality implemented by iio_sw_buffer_preenable() is now done directly
in the IIO core and previous users of iio_sw_buffer_preenable() have all been
updated to not use it anymore. It is unused now and can be remove.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c
include/linux/iio/buffer.h

index 186f501e64154f2fe6b1e16df46bab74ac94f190..d7ab258e3a427692e9c073a34a55a933123b295b 100644 (file)
@@ -749,24 +749,6 @@ done:
 }
 EXPORT_SYMBOL(iio_buffer_store_enable);
 
-int iio_sw_buffer_preenable(struct iio_dev *indio_dev)
-{
-       struct iio_buffer *buffer;
-       unsigned bytes;
-       dev_dbg(&indio_dev->dev, "%s\n", __func__);
-
-       list_for_each_entry(buffer, &indio_dev->buffer_list, buffer_list)
-               if (buffer->access->set_bytes_per_datum) {
-                       bytes = iio_compute_scan_bytes(indio_dev,
-                                                      buffer->scan_mask,
-                                                      buffer->scan_timestamp);
-
-                       buffer->access->set_bytes_per_datum(buffer, bytes);
-               }
-       return 0;
-}
-EXPORT_SYMBOL(iio_sw_buffer_preenable);
-
 /**
  * iio_validate_scan_mask_onehot() - Validates that exactly one channel is selected
  * @indio_dev: the iio device
index 6e428d96d57025eb155a55c275ac9789104ff79f..15607b45221a9b9c03c6fdaade48afd9a4641c9e 100644 (file)
@@ -206,8 +206,6 @@ ssize_t iio_buffer_show_enable(struct device *dev,
                                           iio_buffer_show_enable,      \
                                           iio_buffer_store_enable)
 
-int iio_sw_buffer_preenable(struct iio_dev *indio_dev);
-
 bool iio_validate_scan_mask_onehot(struct iio_dev *indio_dev,
        const unsigned long *mask);