staging:iio:buffer remove unused owner field from struct iio_buffer
Legacy of having multiple chrdevs that never got cleaned up. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
550268ca11
commit
66748b5ada
|
@ -119,7 +119,6 @@ int adis16201_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->scan_timestamp = true;
|
||||
ring->access = &ring_sw_access_funcs;
|
||||
indio_dev->setup_ops = &adis16201_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16201_trigger_handler,
|
||||
|
|
|
@ -121,7 +121,6 @@ int adis16203_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->scan_timestamp = true;
|
||||
ring->access = &ring_sw_access_funcs;
|
||||
indio_dev->setup_ops = &adis16203_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16203_trigger_handler,
|
||||
|
|
|
@ -116,7 +116,6 @@ int adis16204_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->access = &ring_sw_access_funcs;
|
||||
ring->scan_timestamp = true;
|
||||
indio_dev->setup_ops = &adis16204_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16204_trigger_handler,
|
||||
|
|
|
@ -117,7 +117,6 @@ int adis16209_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->access = &ring_sw_access_funcs;
|
||||
ring->scan_timestamp = true;
|
||||
indio_dev->setup_ops = &adis16209_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16209_trigger_handler,
|
||||
|
|
|
@ -114,7 +114,6 @@ int adis16240_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->access = &ring_sw_access_funcs;
|
||||
ring->scan_timestamp = true;
|
||||
indio_dev->setup_ops = &adis16240_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16240_trigger_handler,
|
||||
|
|
|
@ -443,7 +443,6 @@ int lis3l02dq_configure_buffer(struct iio_dev *indio_dev)
|
|||
|
||||
buffer->scan_timestamp = true;
|
||||
indio_dev->setup_ops = &lis3l02dq_buffer_setup_ops;
|
||||
buffer->owner = THIS_MODULE;
|
||||
|
||||
/* Functions are NULL as we set handler below */
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
|
|
|
@ -68,7 +68,6 @@ struct iio_buffer_access_funcs {
|
|||
/**
|
||||
* struct iio_buffer - general buffer structure
|
||||
* @indio_dev: industrial I/O device structure
|
||||
* @owner: module that owns the buffer (for ref counting)
|
||||
* @length: [DEVICE] number of datums in buffer
|
||||
* @bytes_per_datum: [DEVICE] size of individual datum including timestamp
|
||||
* @scan_el_attrs: [DRIVER] control of scan elements if that scan mode
|
||||
|
@ -83,7 +82,6 @@ struct iio_buffer_access_funcs {
|
|||
**/
|
||||
struct iio_buffer {
|
||||
struct iio_dev *indio_dev;
|
||||
struct module *owner;
|
||||
int length;
|
||||
int bytes_per_datum;
|
||||
struct attribute_group *scan_el_attrs;
|
||||
|
|
|
@ -119,7 +119,6 @@ int adis16260_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->access = &ring_sw_access_funcs;
|
||||
ring->scan_timestamp = true;
|
||||
indio_dev->setup_ops = &adis16260_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16260_trigger_handler,
|
||||
|
|
|
@ -153,7 +153,6 @@ int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
|
|||
* be run on either side of buffer capture enable / disable.
|
||||
*/
|
||||
indio_dev->setup_ops = &iio_simple_dummy_buffer_setup_ops;
|
||||
buffer->owner = THIS_MODULE;
|
||||
|
||||
/*
|
||||
* Configure a polling function.
|
||||
|
|
|
@ -191,7 +191,6 @@ int adis16400_configure_ring(struct iio_dev *indio_dev)
|
|||
ring->access = &ring_sw_access_funcs;
|
||||
ring->scan_timestamp = true;
|
||||
indio_dev->setup_ops = &adis16400_ring_setup_ops;
|
||||
ring->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&adis16400_trigger_handler,
|
||||
|
|
|
@ -147,7 +147,6 @@ int ade7758_configure_ring(struct iio_dev *indio_dev)
|
|||
/* Effectively select the ring buffer implementation */
|
||||
indio_dev->buffer->access = &ring_sw_access_funcs;
|
||||
indio_dev->setup_ops = &ade7758_ring_setup_ops;
|
||||
indio_dev->buffer->owner = THIS_MODULE;
|
||||
|
||||
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
|
||||
&ade7758_trigger_handler,
|
||||
|
|
Loading…
Reference in New Issue