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

staging: comedi: me_daq: rename 'subdevice' variable to 's'

Rename the variable used for the comedi_subdevice pointer from
'subdevice' to 's'. This is more typical in other comedi drivers
and helps when searching with grep.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8aaf2717
...@@ -341,7 +341,7 @@ static int me_dio_insn_bits(struct comedi_device *dev, ...@@ -341,7 +341,7 @@ static int me_dio_insn_bits(struct comedi_device *dev,
/* Analog instant input */ /* Analog instant input */
static int me_ai_insn_read(struct comedi_device *dev, static int me_ai_insn_read(struct comedi_device *dev,
struct comedi_subdevice *subdevice, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn, unsigned int *data)
{ {
unsigned short value; unsigned short value;
...@@ -435,7 +435,7 @@ static int me_ai_do_cmd_test(struct comedi_device *dev, ...@@ -435,7 +435,7 @@ static int me_ai_do_cmd_test(struct comedi_device *dev,
/* Analog input command */ /* Analog input command */
static int me_ai_do_cmd(struct comedi_device *dev, static int me_ai_do_cmd(struct comedi_device *dev,
struct comedi_subdevice *subdevice) struct comedi_subdevice *s)
{ {
return 0; return 0;
} }
...@@ -643,7 +643,7 @@ static struct pci_dev *me_find_pci_dev(struct comedi_device *dev, ...@@ -643,7 +643,7 @@ static struct pci_dev *me_find_pci_dev(struct comedi_device *dev,
static int me_attach(struct comedi_device *dev, struct comedi_devconfig *it) static int me_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{ {
struct pci_dev *pci_device; struct pci_dev *pci_device;
struct comedi_subdevice *subdevice; struct comedi_subdevice *s;
struct me_board *board; struct me_board *board;
resource_size_t plx_regbase_tmp; resource_size_t plx_regbase_tmp;
unsigned long plx_regbase_size_tmp; unsigned long plx_regbase_size_tmp;
...@@ -758,38 +758,38 @@ static int me_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -758,38 +758,38 @@ static int me_attach(struct comedi_device *dev, struct comedi_devconfig *it)
if (error) if (error)
return error; return error;
subdevice = dev->subdevices + 0; s = dev->subdevices + 0;
subdevice->type = COMEDI_SUBD_AI; s->type = COMEDI_SUBD_AI;
subdevice->subdev_flags = SDF_READABLE | SDF_COMMON | SDF_CMD_READ; s->subdev_flags = SDF_READABLE | SDF_COMMON | SDF_CMD_READ;
subdevice->n_chan = board->ai_channel_nbr; s->n_chan = board->ai_channel_nbr;
subdevice->maxdata = board->ai_resolution_mask; s->maxdata = board->ai_resolution_mask;
subdevice->len_chanlist = board->ai_channel_nbr; s->len_chanlist = board->ai_channel_nbr;
subdevice->range_table = board->ai_range_list; s->range_table = board->ai_range_list;
subdevice->cancel = me_ai_cancel; s->cancel = me_ai_cancel;
subdevice->insn_read = me_ai_insn_read; s->insn_read = me_ai_insn_read;
subdevice->do_cmdtest = me_ai_do_cmd_test; s->do_cmdtest = me_ai_do_cmd_test;
subdevice->do_cmd = me_ai_do_cmd; s->do_cmd = me_ai_do_cmd;
subdevice = dev->subdevices + 1; s = dev->subdevices + 1;
subdevice->type = COMEDI_SUBD_AO; s->type = COMEDI_SUBD_AO;
subdevice->subdev_flags = SDF_WRITEABLE | SDF_COMMON; s->subdev_flags = SDF_WRITEABLE | SDF_COMMON;
subdevice->n_chan = board->ao_channel_nbr; s->n_chan = board->ao_channel_nbr;
subdevice->maxdata = board->ao_resolution_mask; s->maxdata = board->ao_resolution_mask;
subdevice->len_chanlist = board->ao_channel_nbr; s->len_chanlist = board->ao_channel_nbr;
subdevice->range_table = board->ao_range_list; s->range_table = board->ao_range_list;
subdevice->insn_read = me_ao_insn_read; s->insn_read = me_ao_insn_read;
subdevice->insn_write = me_ao_insn_write; s->insn_write = me_ao_insn_write;
subdevice = dev->subdevices + 2; s = dev->subdevices + 2;
subdevice->type = COMEDI_SUBD_DIO; s->type = COMEDI_SUBD_DIO;
subdevice->subdev_flags = SDF_READABLE | SDF_WRITEABLE; s->subdev_flags = SDF_READABLE | SDF_WRITEABLE;
subdevice->n_chan = board->dio_channel_nbr; s->n_chan = board->dio_channel_nbr;
subdevice->maxdata = 1; s->maxdata = 1;
subdevice->len_chanlist = board->dio_channel_nbr; s->len_chanlist = board->dio_channel_nbr;
subdevice->range_table = &range_digital; s->range_table = &range_digital;
subdevice->insn_bits = me_dio_insn_bits; s->insn_bits = me_dio_insn_bits;
subdevice->insn_config = me_dio_insn_config; s->insn_config = me_dio_insn_config;
subdevice->io_bits = 0; s->io_bits = 0;
printk(KERN_INFO "comedi%d: " ME_DRIVER_NAME " attached.\n", printk(KERN_INFO "comedi%d: " ME_DRIVER_NAME " attached.\n",
dev->minor); dev->minor);
......
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