From b44cca941d9499fc7f32375ee4ace02933bd1b9f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 13 Apr 2001 10:31:19 +0000 Subject: [PATCH] writew() had its arguments reversed. --- comedi/drivers/daqboard2000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2