staging: comedi: remove subdevice member of struct comedi_async
authorIan Abbott <abbotti@mev.co.uk>
Tue, 6 May 2014 12:12:18 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:25:51 +0000 (21:25 +0900)
The `async` member of `struct comedi_subdevice` may point to a `struct
comedi_async` or may be NULL.  The `subdevice` member of `struct
comedi_async` points back to the `struct comedi_subdevice` associated
with it in a one-to-one relationship.

All uses of the `subdevice` member of `struct comedi_async` apart from
its initialization have now been removed (by passing around a pointer to
the subdevice instead of to the "async" structure), so get rid of it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h
drivers/staging/comedi/drivers.c

index a5d479c1266e66c06079d0cb9c7e749a886690c5..d07d47f5db81223cbca825e7f325fa96e525f3f4 100644 (file)
@@ -108,8 +108,6 @@ struct comedi_buf_map {
 };
 
 struct comedi_async {
-       struct comedi_subdevice *subdevice;
-
        void *prealloc_buf;     /* pre-allocated buffer */
        unsigned int prealloc_bufsz;    /* buffer size, in bytes */
        struct comedi_buf_map *buf_map; /* map of buffer pages */
index cb5d21411a0c804ee585778bb68afb77a91ae646..299726f39e26d15a0ef45b9b068a02e7d62ce631 100644 (file)
@@ -307,7 +307,6 @@ static int __comedi_device_postconfig_async(struct comedi_device *dev,
                return -ENOMEM;
 
        init_waitqueue_head(&async->wait_head);
-       async->subdevice = s;
        s->async = async;
 
        async->max_bufsize = comedi_default_buf_maxsize_kb * 1024;
This page took 0.026783 seconds and 5 git commands to generate.