From: Jannik Becher Date: Tue, 20 Dec 2016 17:59:38 +0000 (+0100) Subject: staging: rtl8712: changed struct members to __le32 X-Git-Tag: v5.15~11841^2~464 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c3af8f0debea81d87505a03c7ef0b479d8599fd;p=platform%2Fkernel%2Flinux-starfive.git staging: rtl8712: changed struct members to __le32 Fixed sparse warning "cast to restricted __le32". struct sitesurvey_parm uses little endian members. Signed-off-by: Jannik Becher Tested-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl871x_cmd.h b/drivers/staging/rtl8712/rtl871x_cmd.h index 3284dcf..4734ca8 100644 --- a/drivers/staging/rtl8712/rtl871x_cmd.h +++ b/drivers/staging/rtl8712/rtl871x_cmd.h @@ -156,9 +156,9 @@ struct setopmode_parm { * Command-Event Mode */ struct sitesurvey_parm { - sint passive_mode; /*active: 1, passive: 0 */ - sint bsslimit; /* 1 ~ 48 */ - sint ss_ssidlen; + __le32 passive_mode; /*active: 1, passive: 0 */ + __le32 bsslimit; /* 1 ~ 48 */ + __le32 ss_ssidlen; u8 ss_ssid[IW_ESSID_MAX_SIZE + 1]; };