[PATCH 18/46] staging: comedi: me4000: fix me4000_ai_insn_read()

Ian Abbott abbotti at mev.co.uk
Wed Aug 5 12:37:38 UTC 2015


On 04/08/15 18:57, H Hartley Sweeten wrote:
> The coemdi (*insn_read) functions are supposed to read insn->n values
> from the hardware. Make this function work like the core expects.
>
> Use the comedi_offset_munge() helper to munge the two's complement
> values to offset binary.

My guess would be that the format of the output value could be 
controlled by the ME4000_AI_CTRL_BIT_OFFSET bit, but that's only a 
guess, and the guy at Meilhaus who wrote the original driver didn't use it!

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-


More information about the devel mailing list