From: H Hartley Sweeten Date: Thu, 25 Jul 2013 23:10:25 +0000 (-0700) Subject: staging: comedi: usbdux: simplify initializing the ao urb transfer_buffer X-Git-Tag: v3.12-rc1~183^2~498 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c769f85e2740ebe7e4c726632fed52818640faba;p=pandora-kernel.git staging: comedi: usbdux: simplify initializing the ao urb transfer_buffer Remove the ugly casting of datap to the ao urb->transfer_buffer. The format of the data in the buffer is simply. [0] = # of channels to update (s->async->cmd.chanlist.len) [1] = lsb of value for 1st channel to update [2] = msb of value for 1st channel to update [3] = 1st channel to update (depvriv->dac_commands[0]) If more than 1 channel is to be updated they are simply added to the buffer: [4] = lsb of value for 2st channel to update [5] = msb of value for 2st channel to update [6] = 1st channel to update (depvriv->dac_commands[1]) etc. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed