]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
staging: comedi: das1800: use comedi_cmd pointer
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 27 May 2014 17:30:51 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:28:53 +0000 (14:28 -0700)
Use the local variable to access the comedi_cmd as a pointer instead
of getting to it from the comedi_subdevice pointer.

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/das1800.c

index ba357b6ec1274c83ba334b9af15b8f43e8e35613..859519026c4c2f1cf621b4508ac8ba6eb4312efc 100644 (file)
@@ -547,7 +547,7 @@ static void das1800_flush_dma_channel(struct comedi_device *dev,
 
        munge_data(dev, buffer, num_samples);
        cfc_write_array_to_buffer(s, buffer, num_bytes);
-       if (s->async->cmd.stop_src == TRIG_COUNT)
+       if (cmd->stop_src == TRIG_COUNT)
                devpriv->count -= num_samples;
 
        return;