Commit d65d73ff authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_3120: rename private data 'b_DmaDoubleBuffer'

Rename this CamelCase member of the private data and convert it to
a bit-field.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e6539bbc
......@@ -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 {
......
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment