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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx>

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux