Skip to content

Commit 052c198

Browse files
H Hartley Sweetengregkh
authored andcommitted
staging: comedi: rti802: tidy up the subdevice init
For aesthetics, add some whitespace to the 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>
1 parent 57450d9 commit 052c198

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

drivers/staging/comedi/drivers/rti802.c

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,21 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
109109
if (ret)
110110
return ret;
111111

112+
/* Analog Output subdevice */
112113
s = &dev->subdevices[0];
113-
/* ao subdevice */
114-
s->type = COMEDI_SUBD_AO;
115-
s->subdev_flags = SDF_WRITABLE;
116-
s->maxdata = 0xfff;
117-
s->n_chan = 8;
118-
s->insn_read = rti802_ao_insn_read;
119-
s->insn_write = rti802_ao_insn_write;
114+
s->type = COMEDI_SUBD_AO;
115+
s->subdev_flags = SDF_WRITABLE;
116+
s->maxdata = 0xfff;
117+
s->n_chan = 8;
118+
s->insn_read = rti802_ao_insn_read;
119+
s->insn_write = rti802_ao_insn_write;
120120
s->range_table_list = devpriv->range_type_list;
121121

122122
for (i = 0; i < 8; i++) {
123123
devpriv->dac_coding[i] = (it->options[3 + 2 * i])
124-
? (dac_straight)
125-
: (dac_2comp);
124+
? (dac_straight) : (dac_2comp);
126125
devpriv->range_type_list[i] = (it->options[2 + 2 * i])
127-
? &range_unipolar10 : &range_bipolar10;
126+
? &range_unipolar10 : &range_bipolar10;
128127
}
129128

130129
return 0;

0 commit comments

Comments
 (0)