iio: core: move event interface on the opaque struct
Same as with other private fields, this moves the event interface reference to the opaque IIO device object, to be invisible to drivers. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:

committed by
Jonathan Cameron

parent
6a8c6b26f7
commit
fa83c3baa5
@@ -488,7 +488,6 @@ struct iio_buffer_setup_ops {
|
||||
* @currentmode: [DRIVER] current operating mode
|
||||
* @dev: [DRIVER] device structure, should be assigned a parent
|
||||
* and owner
|
||||
* @event_interface: [INTERN] event chrdevs associated with interrupt lines
|
||||
* @buffer: [DRIVER] any buffer present
|
||||
* @scan_bytes: [INTERN] num bytes captured to be fed to buffer demux
|
||||
* @mlock: [INTERN] lock used to prevent simultaneous device state
|
||||
@@ -527,8 +526,6 @@ struct iio_dev {
|
||||
int currentmode;
|
||||
struct device dev;
|
||||
|
||||
struct iio_event_interface *event_interface;
|
||||
|
||||
struct iio_buffer *buffer;
|
||||
int scan_bytes;
|
||||
struct mutex mlock;
|
||||
|
Reference in New Issue
Block a user