staging/ks7010: Fix type assignment for struct hostif_hdr
authorCezary Gapinski <gapalinux@gmail.com>
Sat, 29 Apr 2017 17:54:30 +0000 (19:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:41:58 +0000 (07:41 +0200)
commitd9d1ffd4bf80ebf77609c145e2e97e2cfd4f8f02
treeb4fbe1fb6884bf257c5b3e71acd7b0cd7f3a30cb
parentc12603576e06689af0bc62b4017eeb99ceda84d6
staging/ks7010: Fix type assignment for struct hostif_hdr

Sparse spits out a warnings about __le16 and unsigned short assignment.
Change the type of size and event members of struct hostif_hdr
to __le16 and correct conversion to the proper cpu type.

Signed-off-by: Cezary Gapinski <gapalinux@gmail.com>
Reviewed-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c
drivers/staging/ks7010/ks_hostif.h