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

staging: comedi: das16m1: tidy up digital input subdevice init

Add some whitespace to the subdevice init and rename the support
function.
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 5c8694d6
...@@ -347,9 +347,10 @@ static int das16m1_ai_insn_read(struct comedi_device *dev, ...@@ -347,9 +347,10 @@ static int das16m1_ai_insn_read(struct comedi_device *dev,
return n; return n;
} }
static int das16m1_di_rbits(struct comedi_device *dev, static int das16m1_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)
{ {
unsigned int bits; unsigned int bits;
...@@ -574,14 +575,14 @@ static int das16m1_attach(struct comedi_device *dev, ...@@ -574,14 +575,14 @@ static int das16m1_attach(struct comedi_device *dev,
s->poll = das16m1_ai_poll; s->poll = das16m1_ai_poll;
} }
/* Digital Input subdevice */
s = &dev->subdevices[1]; s = &dev->subdevices[1];
/* di */ s->type = COMEDI_SUBD_DI;
s->type = COMEDI_SUBD_DI; s->subdev_flags = SDF_READABLE;
s->subdev_flags = SDF_READABLE; s->n_chan = 4;
s->n_chan = 4; s->maxdata = 1;
s->maxdata = 1; s->range_table = &range_digital;
s->range_table = &range_digital; s->insn_bits = das16m1_di_insn_bits;
s->insn_bits = das16m1_di_rbits;
s = &dev->subdevices[2]; s = &dev->subdevices[2];
/* do */ /* do */
......
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