From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:23:45 +0000 (-0700) Subject: staging: comedi: ni_mio_common: tidy up ni_ao_munge() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~687 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a10817d67f34546401f6733badd427c9decf88e8;p=pandora-kernel.git staging: comedi: ni_mio_common: tidy up ni_ao_munge() Use the bytes_per_sample() helper instead of 'sizeof(short)' to clarify the length calculation. Use comedi_offset_munge() to handle the unsigned to two's complement munge of the data for bipolar ranges. Tidy up the local variables. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed