diff options
| author | 2013-05-14 13:41:30 -0700 | |
|---|---|---|
| committer | 2013-05-16 16:24:31 -0700 | |
| commit | 17fdeba07662e68bf3d9a7270292f0fef9c9fe2d (patch) | |
| tree | e5289fbc3f4739c08ecafb5fa298b26eed917aad /include/linux/debugobjects.h | |
| parent | staging: comedi: usbduxfast: rename usbduxfastsub_submit_InURBs() (diff) | |
staging: comedi: usbduxfast: introduce usbduxfast_cmd_data()
Introduce a helper function to set the buffer used to transfer
commands to the usb device.
Each command consists of four uint8_t values that are stored at
specific indexes in the buffer. The helper function consolidates
the code that sets the buffer to reduce coding errors and make
the driver a bit easier to understand.
Note, the '0xff & rngmask' can be reduced to simply 'rngmask'
since the rngmask is always an 8-bit value.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
