linux/drivers/staging/comedi
Ian Abbott 3de00ee4ce staging: comedi: s626: fix value written by s626_set_dac()
I broke `s626_set_dac()` by changing the type of the `dacdata` parameter
from `short` to `unsigned short`.  It's actually designed to take a
signed value in the range -0x1fff to +0x2000 although values above
0x1fff get clamped to 0x1fff.  (We could change the `maxdata` value to
0x1ffe to avoid the clamping, but `maxdata` values are usually a power
of 2 minus 1.)  The bug results in all negative values passed to the
function being changed to +0x1fff by the clamp.  Change the parameter
type to `int16_t` to fix the problem.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-25 09:09:07 -08:00
..
drivers staging: comedi: s626: fix value written by s626_set_dac() 2013-11-25 09:09:07 -08:00
kcomedilib staging: comedi: comedi_bond: handle base channel for insn_bits 2013-08-26 06:41:56 -07:00
Kconfig staging: comedi: ni_6527: remove COMEDI_MITE dependancy 2013-10-03 14:10:03 -07:00
Makefile
TODO
comedi.h
comedi_buf.c staging: comedi: use unsigned samples for comedi_buf_put()/get() 2013-10-16 12:48:16 -07:00
comedi_compat32.c file->f_op is never NULL... 2013-10-24 23:34:54 -04:00
comedi_compat32.h
comedi_fops.c staging: comedi: use memdup_user to simplify code 2013-10-29 08:40:53 -07:00
comedi_internal.h
comedi_pci.c
comedi_pcmcia.c
comedi_usb.c
comedidev.h staging: comedi: use unsigned samples for comedi_buf_put()/get() 2013-10-16 12:48:16 -07:00
comedilib.h staging: comedi: comedi_bond: handle base channel for insn_bits 2013-08-26 06:41:56 -07:00
drivers.c staging: comedi: drivers: introduce comedi_dio_update_state() 2013-09-17 07:47:40 -07:00
proc.c
range.c staging: comedi: range: tidy up comedi_check_chanlist() 2013-07-25 13:20:17 -07:00