]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging:iio:buffer remove unused owner field from struct iio_buffer
authorJonathan Cameron <jic23@kernel.org>
Mon, 5 Dec 2011 22:18:16 +0000 (22:18 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 20:11:09 +0000 (12:11 -0800)
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>
drivers/staging/iio/accel/adis16201_ring.c
drivers/staging/iio/accel/adis16203_ring.c
drivers/staging/iio/accel/adis16204_ring.c
drivers/staging/iio/accel/adis16209_ring.c
drivers/staging/iio/accel/adis16240_ring.c
drivers/staging/iio/accel/lis3l02dq_ring.c
drivers/staging/iio/buffer.h
drivers/staging/iio/gyro/adis16260_ring.c
drivers/staging/iio/iio_simple_dummy_buffer.c
drivers/staging/iio/imu/adis16400_ring.c
drivers/staging/iio/meter/ade7758_ring.c

index 68d4b38a03556fb5f1178684e349887e975d6395..26c610faee3fd3c835b889be2ccf7bea36c3db89 100644 (file)
@@ -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,
index 0f9d18a604b96a4eaadf790ba92cf22a88e70101..064640d15e41e3197f65a679dad7a7de8b156952 100644 (file)
@@ -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,
index 8010c1d1a05adc0b152e6e4680d3464db6a11fa0..4081179dfa5c469f66e6d6bceffa0fd192b41502 100644 (file)
@@ -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,
index 8629feae0fbe8a0fd7f50d9f1c2ea43368829d6b..2a6fd334f5f13dbe11749becc993defc75ed752a 100644 (file)
@@ -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,
index 9a3dba26e310c1a5eabc59f37badd6110e46fb21..e23622d96f9f1e70445983d5fbfeb293e9c857db 100644 (file)
@@ -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,
index c2e299a6968ae72cfcb274e17c6a9b363aebda66..b44fe394f62f5c789fd2c512c677ac5caf98eb4d 100644 (file)
@@ -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,
index 7fc089404d8c3b7b8fb1f5225a71e28923cfde11..98e9efa0cdba073a12c8374626c6e05ee0e66ff2 100644 (file)
@@ -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;
index 88e96af87110a37d0c3f9ee23730b9f959bcbcd1..699a6152c4093a4f3b0377f6943b41fc8c21b3ef 100644 (file)
@@ -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,
index 59e3186c3beec95096990147ac7bbdbe9842fcfa..d6a1c0e82a5b0f7d5c5c9004c7ac73f71afc17f8 100644 (file)
@@ -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.
index 249d11f98e10a53dcece88b3b86fdc2b9f79aa1d..ac22de573f3e922aa4b3ee4e6ee967e5f1fcb107 100644 (file)
@@ -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,
index 028470ce553d263229e374293dafd873710177fa..f29f2b278fe45dad00d0b335f6965dd7166462f9 100644 (file)
@@ -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,