mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 21:09:25 -04:00
staging: comedi: pcl816: use comedi_bytes_per_scan()
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
03bb28fcfd
commit
3d18aa60ec
@@ -160,7 +160,7 @@ static void pcl816_ai_setup_dma(struct comedi_device *dev,
|
||||
bytes = devpriv->hwdmasize;
|
||||
if (cmd->stop_src == TRIG_COUNT) {
|
||||
/* how many */
|
||||
bytes = cmd->stop_arg * cfc_bytes_per_scan(s);
|
||||
bytes = cmd->stop_arg * comedi_bytes_per_scan(s);
|
||||
|
||||
/* how many DMA pages we must fill */
|
||||
devpriv->dma_runs_to_end = bytes / devpriv->hwdmasize;
|
||||
|
||||
Reference in New Issue
Block a user