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

staging: comedi: drivers/*.c: alignment should match open parenthesis

Fix the alignment issues in all the comedi drivers.
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 9949595c
...@@ -234,7 +234,8 @@ void comedi_isadma_free(struct comedi_isadma *dma) ...@@ -234,7 +234,8 @@ void comedi_isadma_free(struct comedi_isadma *dma)
desc = &dma->desc[i]; desc = &dma->desc[i];
if (desc->virt_addr) if (desc->virt_addr)
dma_free_coherent(NULL, desc->maxsize, dma_free_coherent(NULL, desc->maxsize,
desc->virt_addr, desc->hw_addr); desc->virt_addr,
desc->hw_addr);
} }
kfree(dma->desc); kfree(dma->desc);
} }
......
...@@ -71,7 +71,8 @@ static int dyna_pci10xx_ai_eoc(struct comedi_device *dev, ...@@ -71,7 +71,8 @@ static int dyna_pci10xx_ai_eoc(struct comedi_device *dev,
static int dyna_pci10xx_insn_read_ai(struct comedi_device *dev, static int dyna_pci10xx_insn_read_ai(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn,
unsigned int *data)
{ {
struct dyna_pci10xx_private *devpriv = dev->private; struct dyna_pci10xx_private *devpriv = dev->private;
int n; int n;
...@@ -110,7 +111,8 @@ static int dyna_pci10xx_insn_read_ai(struct comedi_device *dev, ...@@ -110,7 +111,8 @@ static int dyna_pci10xx_insn_read_ai(struct comedi_device *dev,
/* analog output callback */ /* analog output callback */
static int dyna_pci10xx_insn_write_ao(struct comedi_device *dev, static int dyna_pci10xx_insn_write_ao(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn,
unsigned int *data)
{ {
struct dyna_pci10xx_private *devpriv = dev->private; struct dyna_pci10xx_private *devpriv = dev->private;
int n; int n;
...@@ -133,7 +135,8 @@ static int dyna_pci10xx_insn_write_ao(struct comedi_device *dev, ...@@ -133,7 +135,8 @@ static int dyna_pci10xx_insn_write_ao(struct comedi_device *dev,
/* digital input bit interface */ /* digital input bit interface */
static int dyna_pci10xx_di_insn_bits(struct comedi_device *dev, static int dyna_pci10xx_di_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn,
unsigned int *data)
{ {
struct dyna_pci10xx_private *devpriv = dev->private; struct dyna_pci10xx_private *devpriv = dev->private;
u16 d = 0; u16 d = 0;
......
...@@ -517,8 +517,8 @@ static int s626_send_dac(struct comedi_device *dev, uint32_t val) ...@@ -517,8 +517,8 @@ static int s626_send_dac(struct comedi_device *dev, uint32_t val)
/* /*
* Private helper function: Write setpoint to an application DAC channel. * Private helper function: Write setpoint to an application DAC channel.
*/ */
static int s626_set_dac(struct comedi_device *dev, uint16_t chan, static int s626_set_dac(struct comedi_device *dev,
int16_t dacdata) uint16_t chan, int16_t dacdata)
{ {
struct s626_private *devpriv = dev->private; struct s626_private *devpriv = dev->private;
uint16_t signmask; uint16_t signmask;
...@@ -583,8 +583,8 @@ static int s626_set_dac(struct comedi_device *dev, uint16_t chan, ...@@ -583,8 +583,8 @@ static int s626_set_dac(struct comedi_device *dev, uint16_t chan,
return s626_send_dac(dev, val); return s626_send_dac(dev, val);
} }
static int s626_write_trim_dac(struct comedi_device *dev, uint8_t logical_chan, static int s626_write_trim_dac(struct comedi_device *dev,
uint8_t dac_data) uint8_t logical_chan, uint8_t dac_data)
{ {
struct s626_private *devpriv = dev->private; struct s626_private *devpriv = dev->private;
uint32_t chan; uint32_t chan;
......
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