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)
commit2891911a32e81942cefb1bbc1398f39e9fe76db5
tree25df6a20ca22c57e860f7f43d7e8b4d9d148ae94
parent1e575a9cd9f65f18e7a47a58b10f57dc92263e39
staging: comedi: remove subdevice member of struct comedi_async

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