Staging: comedi: ni_mio_common: Fix endian sparse warning
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Sat, 31 Oct 2015 13:34:29 +0000 (06:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
commit212efdb1be77ae97e21afc35310f7f9c428f875c
tree1a4a6aa20612283aae3eba3c902538571164102c
parent90e6228a995816750f96c70d94298e12c08511f4
Staging: comedi: ni_mio_common: Fix endian sparse warning

Fix following sparse warnings:
warning: cast to restricted __le32
warning: cast to restricted __le16
warning: incorrect type in assignment (different base types)
expected unsigned short [unsigned] [assigned] val
got restricted __le16 [usertype] <noident>

Data is pointer of type void and can be used to store any type of data.
In function ni_ai_munge:
barray and array have the same 16 bit offset.
blarray and larray have the same 32 bit offset.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c
This page took 0.026046 seconds and 5 git commands to generate.