removed a bunch of unnecessary address-of operators which seem logically wrong, although
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 2 Aug 2001 02:05:22 +0000 (02:05 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 2 Aug 2001 02:05:22 +0000 (02:05 +0000)
this don't have any actual effect since gcc just seems to ignore them anyways.

comedi/drivers/cb_pcidda.c
comedi/drivers/rtd520.c
comedi/drivers/skel.c

index b4e1b53222c2741469e6b236aa99d4d5971a70aa..1f4d798de94a6b75411d89f9f66370b40ec53f24 100644 (file)
@@ -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;
index b1e698e771d2bc59ca5981e88c40a9ba5a9472ac..f81e1b0b2b4c40a5077241fdc34e9e63535c32c5 100644 (file)
@@ -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<<thisboard->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){
index 3b34cb2b77a9182f5e1288e096d50b05d8946ba0..b525566dea133f5ad4504a833a9ebeff3a9bc2ee 100644 (file)
@@ -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;