diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-10-14 12:49:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-10-16 14:17:06 -0400 |
commit | bf741c08af194ed0448799ff2690c8dd3da709e5 (patch) | |
tree | e4cd8c2764d9f201a00024bbe42d78a281eb29ab /drivers/iio/industrialio-buffer.c | |
parent | 889a62ba6d9796269b22e9d0f630fdaffa6e2630 (diff) |
iio: Remove unused iio_sw_buffer_preenable()
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>
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
-rw-r--r-- | drivers/iio/industrialio-buffer.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index 186f501e6415..d7ab258e3a42 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c | |||
@@ -749,24 +749,6 @@ done: | |||
749 | } | 749 | } |
750 | EXPORT_SYMBOL(iio_buffer_store_enable); | 750 | EXPORT_SYMBOL(iio_buffer_store_enable); |
751 | 751 | ||
752 | int iio_sw_buffer_preenable(struct iio_dev *indio_dev) | ||
753 | { | ||
754 | struct iio_buffer *buffer; | ||
755 | unsigned bytes; | ||
756 | dev_dbg(&indio_dev->dev, "%s\n", __func__); | ||
757 | |||
758 | list_for_each_entry(buffer, &indio_dev->buffer_list, buffer_list) | ||
759 | if (buffer->access->set_bytes_per_datum) { | ||
760 | bytes = iio_compute_scan_bytes(indio_dev, | ||
761 | buffer->scan_mask, | ||
762 | buffer->scan_timestamp); | ||
763 | |||
764 | buffer->access->set_bytes_per_datum(buffer, bytes); | ||
765 | } | ||
766 | return 0; | ||
767 | } | ||
768 | EXPORT_SYMBOL(iio_sw_buffer_preenable); | ||
769 | |||
770 | /** | 752 | /** |
771 | * iio_validate_scan_mask_onehot() - Validates that exactly one channel is selected | 753 | * iio_validate_scan_mask_onehot() - Validates that exactly one channel is selected |
772 | * @indio_dev: the iio device | 754 | * @indio_dev: the iio device |