staging: comedi: mite: use comedi_bytes_per_scan()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Sep 2014 18:41:16 +0000 (11:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:25 +0000 (10:29 +0800)
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>
drivers/staging/comedi/drivers/mite.c

index a43b5beffc4b060416074b0960c07f4ef3f7e998..bc12765368ece82756a4897ad40d8c4e8a40ef4f 100644 (file)
@@ -550,7 +550,7 @@ int mite_sync_output_dma(struct mite_channel *mite_chan,
 {
        struct comedi_async *async = s->async;
        struct comedi_cmd *cmd = &async->cmd;
-       u32 stop_count = cmd->stop_arg * cfc_bytes_per_scan(s);
+       u32 stop_count = cmd->stop_arg * comedi_bytes_per_scan(s);
        unsigned int old_alloc_count = async->buf_read_alloc_count;
        u32 nbytes_ub, nbytes_lb;
        int count;