staging: comedi: pcmad: return errno if AI conversion times out
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 5 Jun 2013 22:36:24 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:01:34 +0000 (12:01 -0700)
commit4f07db2d6a25031fbba056ed7b4a61c02d50ea31
tree45ec2dd84f114709b6170aa37c2b68f469bbb2c6
parentb441f90e94fa50d31e72210522c08080048f0e50
staging: comedi: pcmad: return errno if AI conversion times out

Instead of returning invalid data, return -ETIME if the analog input
conversion times out.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcmad.c