writew() had its arguments reversed.
authorDavid Schleef <ds@schleef.org>
Fri, 13 Apr 2001 10:31:19 +0000 (10:31 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 13 Apr 2001 10:31:19 +0000 (10:31 +0000)
comedi/drivers/daqboard2000.c

index 04700e2034d5a918bd9d512f2813efe70094b161..0aa61dfab3dd6dc649ac00a4377181a7fa9bd08a 100644 (file)
@@ -632,7 +632,7 @@ static int daqboard2000_8255_cb(int dir, int port, int data, void *arg)
   int result = 0;
   unsigned long ioaddr=(unsigned long)arg;
   if(dir){
-    writew(ioaddr+port,data);
+    writew(data,ioaddr+port);
     result = 0;
   }else{
     result = readw(ioaddr+port);