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

staging: comedi: fl512: rename the subdevice (*insn_{read, write}) functions

For aesthetics, rename these functions and remove the unnecessary comments.
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 638622a2
...@@ -38,12 +38,10 @@ static const struct comedi_lrange range_fl512 = { ...@@ -38,12 +38,10 @@ static const struct comedi_lrange range_fl512 = {
} }
}; };
/* static int fl512_ai_insn_read(struct comedi_device *dev,
* fl512_ai_insn : this is the analog input function struct comedi_subdevice *s,
*/ struct comedi_insn *insn,
static int fl512_ai_insn(struct comedi_device *dev, unsigned int *data)
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{ {
int n; int n;
unsigned int lo_byte, hi_byte; unsigned int lo_byte, hi_byte;
...@@ -64,12 +62,10 @@ static int fl512_ai_insn(struct comedi_device *dev, ...@@ -64,12 +62,10 @@ static int fl512_ai_insn(struct comedi_device *dev,
return n; return n;
} }
/* static int fl512_ao_insn_write(struct comedi_device *dev,
* fl512_ao_insn : used to write to a DA port n times struct comedi_subdevice *s,
*/ struct comedi_insn *insn,
static int fl512_ao_insn(struct comedi_device *dev, unsigned int *data)
struct comedi_subdevice *s, struct comedi_insn *insn,
unsigned int *data)
{ {
struct fl512_private *devpriv = dev->private; struct fl512_private *devpriv = dev->private;
int n; int n;
...@@ -88,13 +84,10 @@ static int fl512_ao_insn(struct comedi_device *dev, ...@@ -88,13 +84,10 @@ static int fl512_ao_insn(struct comedi_device *dev,
return n; return n;
} }
/* static int fl512_ao_insn_read(struct comedi_device *dev,
* fl512_ao_insn_readback : used to read previous values written to struct comedi_subdevice *s,
* DA port struct comedi_insn *insn,
*/ unsigned int *data)
static int fl512_ao_insn_readback(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{ {
struct fl512_private *devpriv = dev->private; struct fl512_private *devpriv = dev->private;
int n; int n;
...@@ -131,7 +124,7 @@ static int fl512_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -131,7 +124,7 @@ static int fl512_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->n_chan = 16; s->n_chan = 16;
s->maxdata = 0x0fff; s->maxdata = 0x0fff;
s->range_table = &range_fl512; s->range_table = &range_fl512;
s->insn_read = fl512_ai_insn; s->insn_read = fl512_ai_insn_read;
/* Analog Output subdevice */ /* Analog Output subdevice */
s = &dev->subdevices[1]; s = &dev->subdevices[1];
...@@ -140,8 +133,8 @@ static int fl512_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -140,8 +133,8 @@ static int fl512_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->n_chan = 2; s->n_chan = 2;
s->maxdata = 0x0fff; s->maxdata = 0x0fff;
s->range_table = &range_fl512; s->range_table = &range_fl512;
s->insn_write = fl512_ao_insn; s->insn_write = fl512_ao_insn_write;
s->insn_read = fl512_ao_insn_readback; s->insn_read = fl512_ao_insn_read;
return 0; return 0;
} }
......
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