[PATCH v2 00/20] staging: comedi: pass subdevice around instead of async

Hartley Sweeten HartleyS at visionengravers.com
Tue May 6 20:36:41 UTC 2014


On Tuesday, May 06, 2014 5:12 AM, Ian Abbott wrote:
> For comedi subdevices that support asynchronous commands, the `async`
> member of `struct comedi_subdevice` points to a `struct comedi_async`
> allocated to manage asynchronous commands on that subdevice.  The
> pointer to this "async" structure is passed around by various functions
> and some of those functions need to get back to the "subdevice"
> structure from this pointer, so the "async" structure has a `subdevice`
> member pointing back to the `struct comedi_subdevice`.
>
> Since we can always get to the "async" structure from the "subdevice"
> structure, we can just pass around the pointer to the subdevice instead
> of the pointer to the async structure.  Then the `subdevice` member of
> `struct comedi_async` is no longer required and can be removed.
>
> v2: Rebased to current staging-next due to merge conflicts.  The first
>     two patches from v1 have already been applied, so the ordinals of
>     the remaining patches have been shuffled down two places.

Reviewed-by: H Hartley Sweeten <hsweeten at visionengravers.com>



More information about the devel mailing list