From: H Hartley Sweeten Date: Tue, 13 Jan 2015 17:16:43 +0000 (-0700) Subject: staging: comedi: das1800: remove hard coded 'sample_size' X-Git-Tag: fixes-v4.0-rc1~99^2~377 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620ec185a208f5bf54af46912ae75a330697bd3f;p=pandora-kernel.git staging: comedi: das1800: remove hard coded 'sample_size' Use the comedi_bytes_per_sample() helper to remove the hard coded sample_size in suggest_transfer_size(). The helper function needs to comedi_subdevice pointer. Change the parameters passed to suggest_transfer_size() and setup_dma() so that this pointer is available. Rename these functions so they have namespace associated with the driver. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed