linux/drivers/staging/comedi
Bernd Porr 30c760c1e6 staging: comedi: usbduxsigma: fixing rounding error in the range struct
The AD converter on the usbsigma turns vref (2.5V/2) into the
binary value 0x780000. However the full scale range goes up to
0x800000 so that vref/2 needs to be upscaled by 0x800000/0x780000
which is 1.06bar. In the driver it's been 1.06 without the infinite
6666. I've put the fraction in the code so that the compiler can
calculate the most precise scaling value by itself.

Signed-off-by: Bernd Porr <mail@berndporr.me.uk>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-08 16:27:29 -07:00
..
drivers staging: comedi: usbduxsigma: fixing rounding error in the range struct 2014-07-08 16:27:29 -07:00
kcomedilib
comedi_buf.c staging: comedi: pass subdevice to comedi_buf_write_n_available() 2014-05-23 21:25:50 +09:00
comedi_compat32.c
comedi_compat32.h
comedi_fops.c staging: comedi: allow COMEDI_BUFINFO, COMEDI_CANCEL and COMEDI_POLL on locked subdevice 2014-07-08 16:27:29 -07:00
comedi_internal.h staging: comedi: pass subdevice to comedi_buf_is_mmapped() 2014-05-23 21:25:49 +09:00
comedi_pci.c
comedi_pcmcia.c
comedi_usb.c
comedi.h staging: comedi: ke_counter: expose clock source options to user space 2014-06-26 20:00:43 -04:00
comedidev.h staging: comedi: introduce comedi_buf_n_bytes_ready() 2014-06-26 20:00:44 -04:00
comedilib.h
drivers.c staging: comedi: remove subdevice member of struct comedi_async 2014-05-23 21:25:51 +09:00
Kconfig Merge 3.16-rc2 into staging-next 2014-06-22 12:33:51 -04:00
Makefile
proc.c Staging: comedi: proc: title block update 2014-03-19 04:41:04 +00:00
range.c
TODO staging: comedi: TODO: remove item "reserve major number" 2014-05-28 14:18:11 -07:00