From: H Hartley Sweeten Date: Tue, 11 Nov 2014 23:55:19 +0000 (-0700) Subject: staging: comedi: dmm32at: introduce dmm32_ai_get_sample() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~150 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c0eadadcbe6ed9596568696f9c5b157707a7c8f;p=pandora-kernel.git staging: comedi: dmm32at: introduce dmm32_ai_get_sample() Introduce a helper function to read the two's complement analog input sample from the hardware and munge it to the offset binary (unsigned) format that comedi expects. Use the comedi_offset_munge() helper to munge the data. Use the new helper in the analog input (*insn_read) and in the interrupt handler for the async command. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed