{
unsigned int tmp;
struct comedi_device *dev = dev_id;
- struct comedi_subdevice *s = dev->subdevices;
+ struct comedi_subdevice *s = &dev->subdevices[0];
struct me4000_ai_context *ai_context = &info->ai_context;
int i;
int c = 0;
Analog input subdevice
========================================================================*/
- s = dev->subdevices + 0;
+ s = &dev->subdevices[0];
if (thisboard->ai.count) {
s->type = COMEDI_SUBD_AI;
Analog output subdevice
========================================================================*/
- s = dev->subdevices + 1;
+ s = &dev->subdevices[1];
if (thisboard->ao.count) {
s->type = COMEDI_SUBD_AO;
Digital I/O subdevice
========================================================================*/
- s = dev->subdevices + 2;
+ s = &dev->subdevices[2];
if (thisboard->dio.count) {
s->type = COMEDI_SUBD_DIO;
Counter subdevice
========================================================================*/
- s = dev->subdevices + 3;
+ s = &dev->subdevices[3];
if (thisboard->cnt.count) {
s->type = COMEDI_SUBD_COUNTER;