Re: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:38, H Hartley Sweeten wrote: Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The write to use doesn't really make much sense but is handled for completeness. Use the helper function in the comedi drivers

RE: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Hartley Sweeten
On Wednesday, June 04, 2014 11:17 AM, Ian Abbott wrote: On 2014-05-29 18:38, H Hartley Sweeten wrote: Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The write to use doesn't really make much sense but is handled for

[PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-05-29 Thread H Hartley Sweeten
Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The write to use doesn't really make much sense but is handled for completeness. Use the helper function in the comedi drivers that currently do the calculation as part of the