summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-12-19 18:23:46 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-23 01:38:08 +0400
commit68bc73043224fb1a5a22ff9e77a9c758b9828525 (patch)
tree3f85cbfc9c212086043b003e7e5073964f0031f8
parentbb01443e2cdad4ff5b98e00252e93110d00f4392 (diff)
downloadlinux-68bc73043224fb1a5a22ff9e77a9c758b9828525.tar.xz
staging:iio: Drop buffer busy flag
The flag is only cleared, never set or tested, so it is safe to remove it. Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/iio/buffer.h2
-rw-r--r--drivers/staging/iio/industrialio-buffer.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/iio/buffer.h b/drivers/staging/iio/buffer.h
index 44593b28b36f..eb4938cf6ab4 100644
--- a/drivers/staging/iio/buffer.h
+++ b/drivers/staging/iio/buffer.h
@@ -79,7 +79,6 @@ struct iio_buffer_access_funcs {
* created from the iio_chan_info array.
* @pollq: [INTERN] wait queue to allow for polling on the buffer.
* @stufftoread: [INTERN] flag to indicate new data.
- * @flags: [INTERN] file ops related flags including busy flag.
* @demux_list: [INTERN] list of operations required to demux the scan.
* @demux_bounce: [INTERN] buffer for doing gather from incoming scan.
**/
@@ -95,7 +94,6 @@ struct iio_buffer {
struct attribute_group scan_el_group;
wait_queue_head_t pollq;
bool stufftoread;
- unsigned long flags;
const struct attribute_group *attrs;
struct list_head demux_list;
unsigned char *demux_bounce;
diff --git a/drivers/staging/iio/industrialio-buffer.c b/drivers/staging/iio/industrialio-buffer.c
index 59472890cb2a..4c6d183509f5 100644
--- a/drivers/staging/iio/industrialio-buffer.c
+++ b/drivers/staging/iio/industrialio-buffer.c
@@ -80,7 +80,6 @@ void iio_chrdev_buffer_release(struct iio_dev *indio_dev)
if (!rb)
return;
- clear_bit(IIO_BUSY_BIT_POS, &rb->flags);
if (rb->access->unmark_in_use)
rb->access->unmark_in_use(rb);
}