From: H Hartley Sweeten Date: Wed, 18 Sep 2013 18:50:05 +0000 (-0700) Subject: staging: comedi: adl_pci6208: use comedi_offset_munge() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~689 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6573a875dea244a5b6ca27174f1a3f3898d8ee;p=pandora-kernel.git staging: comedi: adl_pci6208: use comedi_offset_munge() Use comedi_offset_munge() to munge the offset binary values from the comedi core into the two's complement form that the hardware expects. This removes the hard coded assumption that the analog outputs are 16-bits and instead does the munging based on the s->maxdata. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed