Skip to content

Commit

Permalink
staging:iio: Drop buffer busy flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed Dec 22, 2011
1 parent bb01443 commit 68bc730
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/iio/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
**/
Expand All @@ -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;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/iio/industrialio-buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 68bc730

Please sign in to comment.