提交 cd8de2ea 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: acl7225b: rename the (*insn_bits) subdevice functions

For aesthetic reasons, and to help with greps, rename the (*insn_bits)
functions in this driver.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 27b88d6d
...@@ -35,9 +35,10 @@ static const struct acl7225b_boardinfo acl7225b_boards[] = { ...@@ -35,9 +35,10 @@ static const struct acl7225b_boardinfo acl7225b_boards[] = {
}, },
}; };
static int acl7225b_do_insn(struct comedi_device *dev, static int acl7225b_do_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)
{ {
if (data[0]) { if (data[0]) {
s->state &= ~data[0]; s->state &= ~data[0];
...@@ -54,9 +55,10 @@ static int acl7225b_do_insn(struct comedi_device *dev, ...@@ -54,9 +55,10 @@ static int acl7225b_do_insn(struct comedi_device *dev,
return insn->n; return insn->n;
} }
static int acl7225b_di_insn(struct comedi_device *dev, static int acl7225b_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)
{ {
data[1] = inb(dev->iobase + (unsigned long)s->private) | data[1] = inb(dev->iobase + (unsigned long)s->private) |
(inb(dev->iobase + (unsigned long)s->private + 1) << 8); (inb(dev->iobase + (unsigned long)s->private + 1) << 8);
...@@ -87,7 +89,7 @@ static int acl7225b_attach(struct comedi_device *dev, ...@@ -87,7 +89,7 @@ static int acl7225b_attach(struct comedi_device *dev,
s->subdev_flags = SDF_WRITABLE; s->subdev_flags = SDF_WRITABLE;
s->maxdata = 1; s->maxdata = 1;
s->n_chan = 16; s->n_chan = 16;
s->insn_bits = acl7225b_do_insn; s->insn_bits = acl7225b_do_insn_bits;
s->range_table = &range_digital; s->range_table = &range_digital;
s->private = (void *)ACL7225_RIO_LO; s->private = (void *)ACL7225_RIO_LO;
...@@ -97,7 +99,7 @@ static int acl7225b_attach(struct comedi_device *dev, ...@@ -97,7 +99,7 @@ static int acl7225b_attach(struct comedi_device *dev,
s->subdev_flags = SDF_READABLE; s->subdev_flags = SDF_READABLE;
s->maxdata = 1; s->maxdata = 1;
s->n_chan = 16; s->n_chan = 16;
s->insn_bits = acl7225b_di_insn; s->insn_bits = acl7225b_di_insn_bits;
s->range_table = &range_digital; s->range_table = &range_digital;
s->private = (void *)ACL7225_RIO_LO; s->private = (void *)ACL7225_RIO_LO;
...@@ -107,7 +109,7 @@ static int acl7225b_attach(struct comedi_device *dev, ...@@ -107,7 +109,7 @@ static int acl7225b_attach(struct comedi_device *dev,
s->subdev_flags = SDF_READABLE; s->subdev_flags = SDF_READABLE;
s->maxdata = 1; s->maxdata = 1;
s->n_chan = 16; s->n_chan = 16;
s->insn_bits = acl7225b_di_insn; s->insn_bits = acl7225b_di_insn_bits;
s->range_table = &range_digital; s->range_table = &range_digital;
s->private = (void *)ACL7225_DI_LO; s->private = (void *)ACL7225_DI_LO;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册