Commit 66748b5a authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:buffer remove unused owner field from struct iio_buffer

Legacy of having multiple chrdevs that never got cleaned up.
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 550268ca
...@@ -119,7 +119,6 @@ int adis16201_configure_ring(struct iio_dev *indio_dev) ...@@ -119,7 +119,6 @@ int adis16201_configure_ring(struct iio_dev *indio_dev)
ring->scan_timestamp = true; ring->scan_timestamp = true;
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
indio_dev->setup_ops = &adis16201_ring_setup_ops; indio_dev->setup_ops = &adis16201_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16201_trigger_handler, &adis16201_trigger_handler,
......
...@@ -121,7 +121,6 @@ int adis16203_configure_ring(struct iio_dev *indio_dev) ...@@ -121,7 +121,6 @@ int adis16203_configure_ring(struct iio_dev *indio_dev)
ring->scan_timestamp = true; ring->scan_timestamp = true;
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
indio_dev->setup_ops = &adis16203_ring_setup_ops; indio_dev->setup_ops = &adis16203_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16203_trigger_handler, &adis16203_trigger_handler,
......
...@@ -116,7 +116,6 @@ int adis16204_configure_ring(struct iio_dev *indio_dev) ...@@ -116,7 +116,6 @@ int adis16204_configure_ring(struct iio_dev *indio_dev)
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
ring->scan_timestamp = true; ring->scan_timestamp = true;
indio_dev->setup_ops = &adis16204_ring_setup_ops; indio_dev->setup_ops = &adis16204_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16204_trigger_handler, &adis16204_trigger_handler,
......
...@@ -117,7 +117,6 @@ int adis16209_configure_ring(struct iio_dev *indio_dev) ...@@ -117,7 +117,6 @@ int adis16209_configure_ring(struct iio_dev *indio_dev)
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
ring->scan_timestamp = true; ring->scan_timestamp = true;
indio_dev->setup_ops = &adis16209_ring_setup_ops; indio_dev->setup_ops = &adis16209_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16209_trigger_handler, &adis16209_trigger_handler,
......
...@@ -114,7 +114,6 @@ int adis16240_configure_ring(struct iio_dev *indio_dev) ...@@ -114,7 +114,6 @@ int adis16240_configure_ring(struct iio_dev *indio_dev)
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
ring->scan_timestamp = true; ring->scan_timestamp = true;
indio_dev->setup_ops = &adis16240_ring_setup_ops; indio_dev->setup_ops = &adis16240_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16240_trigger_handler, &adis16240_trigger_handler,
......
...@@ -443,7 +443,6 @@ int lis3l02dq_configure_buffer(struct iio_dev *indio_dev) ...@@ -443,7 +443,6 @@ int lis3l02dq_configure_buffer(struct iio_dev *indio_dev)
buffer->scan_timestamp = true; buffer->scan_timestamp = true;
indio_dev->setup_ops = &lis3l02dq_buffer_setup_ops; indio_dev->setup_ops = &lis3l02dq_buffer_setup_ops;
buffer->owner = THIS_MODULE;
/* Functions are NULL as we set handler below */ /* Functions are NULL as we set handler below */
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
......
...@@ -68,7 +68,6 @@ struct iio_buffer_access_funcs { ...@@ -68,7 +68,6 @@ struct iio_buffer_access_funcs {
/** /**
* struct iio_buffer - general buffer structure * struct iio_buffer - general buffer structure
* @indio_dev: industrial I/O device structure * @indio_dev: industrial I/O device structure
* @owner: module that owns the buffer (for ref counting)
* @length: [DEVICE] number of datums in buffer * @length: [DEVICE] number of datums in buffer
* @bytes_per_datum: [DEVICE] size of individual datum including timestamp * @bytes_per_datum: [DEVICE] size of individual datum including timestamp
* @scan_el_attrs: [DRIVER] control of scan elements if that scan mode * @scan_el_attrs: [DRIVER] control of scan elements if that scan mode
...@@ -83,7 +82,6 @@ struct iio_buffer_access_funcs { ...@@ -83,7 +82,6 @@ struct iio_buffer_access_funcs {
**/ **/
struct iio_buffer { struct iio_buffer {
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
struct module *owner;
int length; int length;
int bytes_per_datum; int bytes_per_datum;
struct attribute_group *scan_el_attrs; struct attribute_group *scan_el_attrs;
......
...@@ -119,7 +119,6 @@ int adis16260_configure_ring(struct iio_dev *indio_dev) ...@@ -119,7 +119,6 @@ int adis16260_configure_ring(struct iio_dev *indio_dev)
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
ring->scan_timestamp = true; ring->scan_timestamp = true;
indio_dev->setup_ops = &adis16260_ring_setup_ops; indio_dev->setup_ops = &adis16260_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16260_trigger_handler, &adis16260_trigger_handler,
......
...@@ -153,7 +153,6 @@ int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev) ...@@ -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. * be run on either side of buffer capture enable / disable.
*/ */
indio_dev->setup_ops = &iio_simple_dummy_buffer_setup_ops; indio_dev->setup_ops = &iio_simple_dummy_buffer_setup_ops;
buffer->owner = THIS_MODULE;
/* /*
* Configure a polling function. * Configure a polling function.
......
...@@ -191,7 +191,6 @@ int adis16400_configure_ring(struct iio_dev *indio_dev) ...@@ -191,7 +191,6 @@ int adis16400_configure_ring(struct iio_dev *indio_dev)
ring->access = &ring_sw_access_funcs; ring->access = &ring_sw_access_funcs;
ring->scan_timestamp = true; ring->scan_timestamp = true;
indio_dev->setup_ops = &adis16400_ring_setup_ops; indio_dev->setup_ops = &adis16400_ring_setup_ops;
ring->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&adis16400_trigger_handler, &adis16400_trigger_handler,
......
...@@ -147,7 +147,6 @@ int ade7758_configure_ring(struct iio_dev *indio_dev) ...@@ -147,7 +147,6 @@ int ade7758_configure_ring(struct iio_dev *indio_dev)
/* Effectively select the ring buffer implementation */ /* Effectively select the ring buffer implementation */
indio_dev->buffer->access = &ring_sw_access_funcs; indio_dev->buffer->access = &ring_sw_access_funcs;
indio_dev->setup_ops = &ade7758_ring_setup_ops; indio_dev->setup_ops = &ade7758_ring_setup_ops;
indio_dev->buffer->owner = THIS_MODULE;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time, indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,
&ade7758_trigger_handler, &ade7758_trigger_handler,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment