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

staging: comedi: cb_pcidas: tidy up memory subdevice init

For aesthetics, add some whitespace to the initialization of this
subdevice.

Rename the (*insn_read) function so it has namespace associated with
the driver.
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 d9b0cde4
...@@ -506,9 +506,10 @@ static int nvram_read(struct comedi_device *dev, unsigned int address, ...@@ -506,9 +506,10 @@ static int nvram_read(struct comedi_device *dev, unsigned int address,
return 0; return 0;
} }
static int eeprom_read_insn(struct comedi_device *dev, static int cb_pcidas_eeprom_insn_read(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)
{ {
u8 nvram_data; u8 nvram_data;
int retval; int retval;
...@@ -1357,13 +1358,13 @@ static int cb_pcidas_auto_attach(struct comedi_device *dev, ...@@ -1357,13 +1358,13 @@ static int cb_pcidas_auto_attach(struct comedi_device *dev,
if (ret) if (ret)
return ret; return ret;
/* serial EEPROM, */ /* Memory subdevice - serial EEPROM */
s = &dev->subdevices[3]; s = &dev->subdevices[3];
s->type = COMEDI_SUBD_MEMORY; s->type = COMEDI_SUBD_MEMORY;
s->subdev_flags = SDF_READABLE | SDF_INTERNAL; s->subdev_flags = SDF_READABLE | SDF_INTERNAL;
s->n_chan = 256; s->n_chan = 256;
s->maxdata = 0xff; s->maxdata = 0xff;
s->insn_read = eeprom_read_insn; s->insn_read = cb_pcidas_eeprom_insn_read;
/* Calibration subdevice - 8800 caldac */ /* Calibration subdevice - 8800 caldac */
s = &dev->subdevices[4]; s = &dev->subdevices[4];
......
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