summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/chrdev.h
diff options
context:
space:
mode:
authorJonathan Cameron2011-08-30 13:32:44 +0200
committerGreg Kroah-Hartman2011-09-07 00:59:09 +0200
commit7ae8cf6275589a9ebb733eb5bdd093859ba1be36 (patch)
tree1d13f77c8237f113ff0aa1bb0ace8ced093b8436 /drivers/staging/iio/chrdev.h
parentstaging: iio: kfifo buffer - push structure definition down into implementation. (diff)
downloadkernel-qcow2-linux-7ae8cf6275589a9ebb733eb5bdd093859ba1be36.tar.gz
kernel-qcow2-linux-7ae8cf6275589a9ebb733eb5bdd093859ba1be36.tar.xz
kernel-qcow2-linux-7ae8cf6275589a9ebb733eb5bdd093859ba1be36.zip
staging: iio: chrdev.h rationalization.
Push some functions out of header and include this where it is needed in other headers only. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/chrdev.h')
-rw-r--r--drivers/staging/iio/chrdev.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/staging/iio/chrdev.h b/drivers/staging/iio/chrdev.h
index 3e31ee6220ed..8a229e7c2eb4 100644
--- a/drivers/staging/iio/chrdev.h
+++ b/drivers/staging/iio/chrdev.h
@@ -9,7 +9,6 @@
#ifndef _IIO_CHRDEV_H_
#define _IIO_CHRDEV_H_
-struct iio_dev;
/**
* struct iio_handler - Structure used to specify file operations
@@ -41,35 +40,4 @@ struct iio_event_data {
s64 timestamp;
};
-/**
- * struct iio_detected_event_list - list element for events that have occurred
- * @list: linked list header
- * @ev: the event itself
- */
-struct iio_detected_event_list {
- struct list_head list;
- struct iio_event_data ev;
-};
-
-/**
- * struct iio_event_interface - chrdev interface for an event line
- * @dev: device assocated with event interface
- * @handler: fileoperations and related control for the chrdev
- * @wait: wait queue to allow blocking reads of events
- * @event_list_lock: mutex to protect the list of detected events
- * @det_events: list of detected events
- * @max_events: maximum number of events before new ones are dropped
- * @current_events: number of events in detected list
- */
-struct iio_event_interface {
- struct device dev;
- struct iio_handler handler;
- wait_queue_head_t wait;
- struct mutex event_list_lock;
- struct list_head det_events;
- int max_events;
- int current_events;
- struct list_head dev_attr_list;
-};
-
#endif