Re: Q: comedi timeouts

2014-02-05 Thread Greg KH
On Wed, Feb 05, 2014 at 06:02:04PM +, Hartley Sweeten wrote: > On Wednesday, February 05, 2014 10:40 AM, Greg KH wrote: > > On Tue, Feb 04, 2014 at 06:59:43PM +, Hartley Sweeten wrote: > >> I'm in the process of cleaning up all the "timeout" code in the > >> comedi drivers. The general for

Re: Q: comedi timeouts

2014-02-05 Thread Greg KH
On Tue, Feb 04, 2014 at 06:59:43PM +, Hartley Sweeten wrote: > Hello all, > > I'm in the process of cleaning up all the "timeout" code in the > comedi drivers. The general form of the timeout code in all > the drivers is: > > static int foo_eoc(struct comedi_device *dev, unsigned long timeou

RE: Q: comedi timeouts

2014-02-05 Thread Hartley Sweeten
On Wednesday, February 05, 2014 10:40 AM, Greg KH wrote: > On Tue, Feb 04, 2014 at 06:59:43PM +, Hartley Sweeten wrote: >> I'm in the process of cleaning up all the "timeout" code in the >> comedi drivers. The general form of the timeout code in all >> the drivers is: >> >> static int foo_eoc

Q: comedi timeouts

2014-02-04 Thread Hartley Sweeten
Hello all, I'm in the process of cleaning up all the "timeout" code in the comedi drivers. The general form of the timeout code in all the drivers is: static int foo_eoc(struct comedi_device *dev, unsigned long timeout) { unsigned int status; while (timeout--) { s