From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:55:27 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: use comedi_bytes_to_samples() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~252 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c78a1f487028775b146e3be89690f19b845409b7;p=pandora-kernel.git staging: comedi: addi_apci_3120: use comedi_bytes_to_samples() Use the helper function to calculate the number of samples in the DMA buffer. For aesthetics, 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