Skip to content

Commit

Permalink
staging: comedi: adv_pci1710: tidy up analog output subdevice init
Browse files Browse the repository at this point in the history
For aesthetics, add some whitespace to the analog output subdevice init.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 25, 2015
1 parent 1fbe6e9 commit b420eea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/staging/comedi/drivers/adv_pci1710.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,18 +1088,18 @@ static int pci1710_auto_attach(struct comedi_device *dev,

if (this_board->has_ao) {
s = &dev->subdevices[subdev];
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;
s->maxdata = 0x0fff;
s->range_table = this_board->rangelist_ao;
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;
s->maxdata = 0x0fff;
s->range_table = this_board->rangelist_ao;
switch (this_board->cardtype) {
case TYPE_PCI1720:
s->n_chan = 4;
s->insn_write = pci1720_ao_insn_write;
s->n_chan = 4;
s->insn_write = pci1720_ao_insn_write;
break;
default:
s->n_chan = 2;
s->insn_write = pci171x_ao_insn_write;
s->n_chan = 2;
s->insn_write = pci171x_ao_insn_write;
break;
}

Expand Down

0 comments on commit b420eea

Please sign in to comment.