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

staging: comedi: s626: cleanup subdevice init

For aesthetic reasons, add some whitespace to the subdevice init.
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 f0717f5d
...@@ -2651,11 +2651,10 @@ static int s626_auto_attach(struct comedi_device *dev, ...@@ -2651,11 +2651,10 @@ static int s626_auto_attach(struct comedi_device *dev,
s = &dev->subdevices[0]; s = &dev->subdevices[0];
/* analog input subdevice */ /* analog input subdevice */
dev->read_subdev = s; dev->read_subdev = s;
/* we support single-ended (ground) and differential */
s->type = COMEDI_SUBD_AI; s->type = COMEDI_SUBD_AI;
s->subdev_flags = SDF_READABLE | SDF_DIFF | SDF_CMD_READ; s->subdev_flags = SDF_READABLE | SDF_DIFF | SDF_CMD_READ;
s->n_chan = S626_ADC_CHANNELS; s->n_chan = S626_ADC_CHANNELS;
s->maxdata = (0xffff >> 2); s->maxdata = 0x3fff;
s->range_table = &s626_range_table; s->range_table = &s626_range_table;
s->len_chanlist = S626_ADC_CHANNELS; s->len_chanlist = S626_ADC_CHANNELS;
s->insn_config = s626_ai_insn_config; s->insn_config = s626_ai_insn_config;
...@@ -2669,7 +2668,7 @@ static int s626_auto_attach(struct comedi_device *dev, ...@@ -2669,7 +2668,7 @@ static int s626_auto_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_AO; s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_READABLE; s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = S626_DAC_CHANNELS; s->n_chan = S626_DAC_CHANNELS;
s->maxdata = (0x3fff); s->maxdata = 0x3fff;
s->range_table = &range_bipolar10; s->range_table = &range_bipolar10;
s->insn_write = s626_ao_winsn; s->insn_write = s626_ao_winsn;
s->insn_read = s626_ao_rinsn; s->insn_read = s626_ao_rinsn;
...@@ -2715,12 +2714,12 @@ static int s626_auto_attach(struct comedi_device *dev, ...@@ -2715,12 +2714,12 @@ static int s626_auto_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_COUNTER; s->type = COMEDI_SUBD_COUNTER;
s->subdev_flags = SDF_WRITABLE | SDF_READABLE | SDF_LSAMPL; s->subdev_flags = SDF_WRITABLE | SDF_READABLE | SDF_LSAMPL;
s->n_chan = S626_ENCODER_CHANNELS; s->n_chan = S626_ENCODER_CHANNELS;
s->maxdata = 0xffffff;
s->private = enc_private_data; s->private = enc_private_data;
s->range_table = &range_unknown;
s->insn_config = s626_enc_insn_config; s->insn_config = s626_enc_insn_config;
s->insn_read = s626_enc_insn_read; s->insn_read = s626_enc_insn_read;
s->insn_write = s626_enc_insn_write; s->insn_write = s626_enc_insn_write;
s->maxdata = 0xffffff;
s->range_table = &range_unknown;
s626_initialize(dev); s626_initialize(dev);
......
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