]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: addi_apci_3120: rename private data 'b_DmaDoubleBuffer'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Nov 2014 17:55:09 +0000 (10:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:34:04 +0000 (09:34 -0800)
Rename this CamelCase member of the private data and convert it to
a bit-field.

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/addi-data/hwdrv_apci3120.c
drivers/staging/comedi/drivers/addi_apci_3120.c

index 8327e2c260843923d8312cf65ad5a9e9f1870d41..02755066debe94cdc386a6157328758a6287867b 100644 (file)
@@ -360,7 +360,7 @@ static void apci3120_interrupt_dma(int irq, void *d)
        }
        samplesinbuf = samplesinbuf >> 1;       /*  number of received samples */
 
-       if (devpriv->b_DmaDoubleBuffer) {
+       if (devpriv->use_double_buffer) {
                struct apci3120_dmabuf *next_dmabuf;
 
                next_dmabuf = &devpriv->dmabuf[1 - devpriv->ui_DmaActualBuffer];
@@ -381,7 +381,7 @@ static void apci3120_interrupt_dma(int irq, void *d)
                return;
        }
 
-       if (devpriv->b_DmaDoubleBuffer) {
+       if (devpriv->use_double_buffer) {
                /* switch dma buffers for next interrupt */
                devpriv->ui_DmaActualBuffer = 1 - devpriv->ui_DmaActualBuffer;
        } else {
index 00caa1059db145ab4725379105141b61d55a1e20..f768845597527fe91073469f74db0af3b1d347e2 100644 (file)
@@ -130,7 +130,7 @@ struct apci3120_private {
        unsigned long addon;
        unsigned int osc_base;
        unsigned int use_dma:1;
-       unsigned char b_DmaDoubleBuffer;
+       unsigned int use_double_buffer:1;
        unsigned int ui_DmaActualBuffer;
        struct apci3120_dmabuf dmabuf[2];
        unsigned char do_bits;
@@ -469,7 +469,7 @@ static void apci3120_dma_alloc(struct comedi_device *dev)
                if (i == 0)
                        devpriv->use_dma = 1;
                if (i == 1)
-                       devpriv->b_DmaDoubleBuffer = 1;
+                       devpriv->use_double_buffer = 1;
        }
 }