Staging: comedi: das16: Fix sparse endian warning
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Fri, 30 Oct 2015 04:58:16 +0000 (21:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
commit90e6228a995816750f96c70d94298e12c08511f4
tree7b17e8c7a299793459913f1c7dff03bfecb0cb8d
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
Staging: comedi: das16: Fix sparse endian warning

Fix following sparse warning:
warning: cast to restricted __le16

This change is safe because array is pointer of type void and can
be used to store any type of data, also offset of the array would
be the same since unsigned short and __le16 are both 16 bits in size.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das16.c