staging: comedi: s626: use comedi_timeout() on remaining loops
commit571845c6f47de51a41ab7964a144b22d297d06ce
authorChase Southwood <chase.southwood@yahoo.com>
Thu, 3 Apr 2014 23:43:27 +0000 (3 18:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:25 +0000 (14 08:29 -0700)
tree800672c41b238873c1fe84612068631b2bb4d80a
parent1e4742df19bee14669e72ee3da670c3b6b33cd5e
staging: comedi: s626: use comedi_timeout() on remaining loops

There were just a handful of more while loops in this file that needed
timeouts, and this patch takes care of them.  One new callback is
introduced, and all of the proper comedi_timeout() calls are then used.
The return type of s626_i2c_handshake() has been changed from uint32_t to
int so that a negative error code from comedi_timeout() can be propagated
if necessary.

Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c