staging: comedi: usbdux: fix sparse endianness warnings
authorChase Southwood <chase.southwood@gmail.com>
Sat, 30 Aug 2014 01:40:32 +0000 (20:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:29:20 +0000 (13:29 -0700)
commit7ae596b8c1464e671f040455c7da2719491c8e43
tree0b71aad3d7ab6b22aa5d2673eeb4e94c5d5da541
parent9f3a7738081d12eef6acf89742a6e568e89b4e03
staging: comedi: usbdux: fix sparse endianness warnings

Sparse has many warnings like:

drivers/staging/comedi/drivers/usbdux.c:366:32: warning: cast to
restricted __le16

on lines on which devpriv->in_buf or devpriv->insn_buf are passed to
le16_to_cpu().  This suggests that both of these variables should actually
be of type __le16.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c