From: H Hartley Sweeten Date: Wed, 5 Aug 2015 17:45:19 +0000 (-0700) Subject: staging: comedi: me4000: introduce me4000_ai_get_sample() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~193 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7022781c460290687b374dab1c230c06091bba10;p=pandora-kernel.git staging: comedi: me4000: introduce me4000_ai_get_sample() The hardware returns two's complement values for the analog input samples. These need to be converted to the unsigned binary format that the comedi core expects. Introduce a helper function to handle this. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed