commit | 91891f7cc6453bec358a3bc2a0cf9a0b2f8223d5 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Thu Jul 25 16:04:17 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jul 26 15:09:54 2013 -0700 |
tree | 593a4795b814c4b91d0c231b7e9d5f05e155a4e6 | |
parent | a79b4cdb52151dab5c5b2a86ab7619bc457470a8 [diff] |
staging: comedi: usbdux: clarify bipolar ai data Use the comedi_range_is_bipolar() helper instead of checking the 'range' index against a magic number. Also, use the s->maxdata to calculate the value needed to munge the value for bipolar data instead of the magic number. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>