From: David Schleef Date: Fri, 13 Apr 2001 10:31:19 +0000 (+0000) Subject: writew() had its arguments reversed. X-Git-Tag: r0_7_59~116 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b44cca941d9499fc7f32375ee4ace02933bd1b9f;p=comedi.git writew() had its arguments reversed. --- diff --git a/comedi/drivers/daqboard2000.c b/comedi/drivers/daqboard2000.c index 04700e20..0aa61dfa 100644 --- a/comedi/drivers/daqboard2000.c +++ b/comedi/drivers/daqboard2000.c @@ -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);