On 27/08/14 19:04, Hartley Sweeten wrote:
On Wednesday, August 27, 2014 11:00 AM, Ian Abbott wrote:
On 26/08/14 00:04, H Hartley Sweeten wrote:
The comedi core does the sanity checking of the comedi_insn before
calling the (*insn_write). Remove the unnecessary checks.
Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/staging/comedi/drivers/me4000.c | 33 ++-------------------------------
1 file changed, 2 insertions(+), 31 deletions(-)
[snip]
I thought you might have updated this function to handle the insn->n > 1
case as well. Maybe in a follow-up patch?
There are a couple that have the insn->n > 1 issue. For some of them I have
not located a datasheet/user manual to verify the proper way to handle
multiple writes to the DAC. I will fix those in follow-up patches.
Regards,
Hartley
In such cases, it's probably better just to write the last data value,
rather than the first.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@xxxxxxxxx> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel