mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
staging: comedi: dt3000: rename dt3k_ai_insn()
For aesthetics, rename this subdevice (*insn_read) function to follow the normal naming in comedi drivers. 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
78c2f455e2
commit
2e310235ca
@@ -511,8 +511,10 @@ static int dt3k_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dt3k_ai_insn(struct comedi_device *dev, struct comedi_subdevice *s,
|
static int dt3k_ai_insn_read(struct comedi_device *dev,
|
||||||
struct comedi_insn *insn, unsigned int *data)
|
struct comedi_subdevice *s,
|
||||||
|
struct comedi_insn *insn,
|
||||||
|
unsigned int *data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned int chan, gain, aref;
|
unsigned int chan, gain, aref;
|
||||||
@@ -657,14 +659,14 @@ static int dt3000_auto_attach(struct comedi_device *dev,
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
/* Analog Input subdevice */
|
||||||
s = &dev->subdevices[0];
|
s = &dev->subdevices[0];
|
||||||
/* ai subdevice */
|
|
||||||
s->type = COMEDI_SUBD_AI;
|
s->type = COMEDI_SUBD_AI;
|
||||||
s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_DIFF;
|
s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_DIFF;
|
||||||
s->n_chan = board->adchan;
|
s->n_chan = board->adchan;
|
||||||
s->insn_read = dt3k_ai_insn;
|
|
||||||
s->maxdata = board->ai_is_16bit ? 0xffff : 0x0fff;
|
s->maxdata = board->ai_is_16bit ? 0xffff : 0x0fff;
|
||||||
s->range_table = &range_dt3000_ai; /* XXX */
|
s->range_table = &range_dt3000_ai; /* XXX */
|
||||||
|
s->insn_read = dt3k_ai_insn_read;
|
||||||
if (dev->irq) {
|
if (dev->irq) {
|
||||||
dev->read_subdev = s;
|
dev->read_subdev = s;
|
||||||
s->subdev_flags |= SDF_CMD_READ;
|
s->subdev_flags |= SDF_CMD_READ;
|
||||||
|
|||||||
Reference in New Issue
Block a user