From: Frank Mori Hess Date: Thu, 2 Aug 2001 02:05:22 +0000 (+0000) Subject: removed a bunch of unnecessary address-of operators which seem logically wrong, although X-Git-Tag: r0_7_61~203 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=009cc0e3bba5e64363633076c0ef358203751ee2;p=comedi.git removed a bunch of unnecessary address-of operators which seem logically wrong, although this don't have any actual effect since gcc just seems to ignore them anyways. --- diff --git a/comedi/drivers/cb_pcidda.c b/comedi/drivers/cb_pcidda.c index b4e1b532..1f4d798d 100644 --- a/comedi/drivers/cb_pcidda.c +++ b/comedi/drivers/cb_pcidda.c @@ -352,9 +352,9 @@ found: s->n_chan = thisboard->ao_chans; s->maxdata = (1 << thisboard->ao_bits) - 1; s->range_table = thisboard->ranges; - s->insn_write = &cb_pcidda_ao_winsn; -// s->do_cmd = &cb_pcidda_ai_cmd; - s->do_cmdtest = &cb_pcidda_ai_cmdtest; + s->insn_write = cb_pcidda_ao_winsn; +// s->do_cmd = cb_pcidda_ai_cmd; + s->do_cmdtest = cb_pcidda_ai_cmdtest; // two 8255 digital io subdevices s = dev->subdevices + 1; diff --git a/comedi/drivers/rtd520.c b/comedi/drivers/rtd520.c index b1e698e7..f81e1b0b 100644 --- a/comedi/drivers/rtd520.c +++ b/comedi/drivers/rtd520.c @@ -666,10 +666,10 @@ static int rtd_attach ( s->range_table = &rtd_ai_4520_range; } s->len_chanlist = thisboard->fifoLen; - s->insn_read = &rtd_ai_rinsn; - s->do_cmd = &rtd_ai_cmd; - s->do_cmdtest = &rtd_ai_cmdtest; - s->cancel = &rtd_ai_cancel; + s->insn_read = rtd_ai_rinsn; + s->do_cmd = rtd_ai_cmd; + s->do_cmdtest = rtd_ai_cmdtest; + s->cancel = rtd_ai_cancel; s=dev->subdevices+1; /* analog output subdevice */ @@ -678,8 +678,8 @@ static int rtd_attach ( s->n_chan = 2; s->maxdata =(1<aiBits)-1; s->range_table = &rtd_ao_range; - s->insn_write = &rtd_ao_winsn; - s->insn_read = &rtd_ao_rinsn; + s->insn_write = rtd_ao_winsn; + s->insn_read = rtd_ao_rinsn; s=dev->subdevices+2; /* digital i/o subdevice */ @@ -701,7 +701,7 @@ static int rtd_attach ( //s->insn_config=rtd_gpct_insn_config; s->n_chan=3; s->maxdata=0xffff; - + /* check if our interrupt is available and get it */ dev->irq = devpriv->pci_dev->irq; if(dev->irq>0){ diff --git a/comedi/drivers/skel.c b/comedi/drivers/skel.c index 3b34cb2b..b525566d 100644 --- a/comedi/drivers/skel.c +++ b/comedi/drivers/skel.c @@ -189,8 +189,8 @@ static int skel_attach(comedi_device *dev,comedi_devconfig *it) s->range_table=&range_bipolar10; s->len_chanlist=16; /* This is the maximum chanlist length that the board can handle */ - s->insn_read = &skel_ai_rinsn; - //s->do_cmd = &skel_ai_cmd; + s->insn_read = skel_ai_rinsn; + //s->do_cmd = skel_ai_cmd; s->do_cmdtest = skel_ai_cmdtest; s=dev->subdevices+1;