From: H Hartley Sweeten Date: Tue, 29 Apr 2014 19:59:41 +0000 (-0700) Subject: staging: comedi: addi_common.h: remove 'ui_AiScanLength' from private data X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1062 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72af0c4ed598419b908f12307cdac7151f622209;p=pandora-kernel.git staging: comedi: addi_common.h: remove 'ui_AiScanLength' from private data This member of the private data is a copy of the cmd->scan_end_arg. Use that instead. Use a local variable in apci3120_cyclic_ai() for the DMA 'scan_bytes', which is the cmd->scan_end_arg * 2. Replace the open-coded '2' with sizeof(short). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed