From 15f5da1b2043a12ec5f81b462f3f69fc0b3900fb Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 6 Mar 2005 17:34:39 +0000 Subject: [PATCH] fixed "cast as lvalue" compiler warning --- comedi/drivers/usbdux.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/comedi/drivers/usbdux.c b/comedi/drivers/usbdux.c index c6b38977..af1e289f 100644 --- a/comedi/drivers/usbdux.c +++ b/comedi/drivers/usbdux.c @@ -751,6 +751,7 @@ static void usbduxsub_ao_IsocIrq(struct urb *urb, struct pt_regs *regs) { ((uint8_t*)(urb->transfer_buffer))[0]= s->async->cmd.chanlist_len; for(i=0;iasync->cmd.chanlist_len;i++) { + sampl_t temp; if (i>=NUMOUTCHANNELS) { break; } @@ -758,9 +759,9 @@ static void usbduxsub_ao_IsocIrq(struct urb *urb, struct pt_regs *regs) { datap=&(((int8_t*)urb->transfer_buffer)[i*3+1]); // get the data from comedi ret=comedi_buf_get - (s->async, - ((sampl_t*)datap)); - (uint16_t)(datap[0])=cpu_to_le16((uint16_t)(datap[0])); + (s->async, &temp); + datap[0]=temp; + datap[1]=temp >> 8; datap[2]=this_usbduxsub->dac_commands[i]; /*printk("data[0]=%x, data[1]=%x, data[2]=%x\n", datap[0],datap[1],datap[2]);*/ -- 2.26.2