Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ks7010: hostif, u32 data types to __le32

Target device is little endian. Host interface data structures used
for building frames to pass to target device should use little endian
data types. All u32 structure members in ks_hostif.h need to be
changed to __le32.

Change all u16 data types in host interface structures to be
__le32.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tobin C. Harding and committed by
Greg Kroah-Hartman
338dbc1e 683356d1

+15 -15
+15 -15
drivers/staging/ks7010/ks_hostif.h
··· 143 143 144 144 struct hostif_mib_get_request_t { 145 145 struct hostif_hdr header; 146 - u32 mib_attribute; 146 + __le32 mib_attribute; 147 147 } __packed; 148 148 149 149 struct hostif_mib_value_t { ··· 159 159 160 160 struct hostif_mib_get_confirm_t { 161 161 struct hostif_hdr header; 162 - u32 mib_status; 162 + __le32 mib_status; 163 163 #define MIB_SUCCESS 0 164 164 #define MIB_INVALID 1 165 165 #define MIB_READ_ONLY 2 166 166 #define MIB_WRITE_ONLY 3 167 - u32 mib_attribute; 167 + __le32 mib_attribute; 168 168 struct hostif_mib_value_t mib_value; 169 169 } __packed; 170 170 171 171 struct hostif_mib_set_request_t { 172 172 struct hostif_hdr header; 173 - u32 mib_attribute; 173 + __le32 mib_attribute; 174 174 struct hostif_mib_value_t mib_value; 175 175 } __packed; 176 176 177 177 struct hostif_mib_set_confirm_t { 178 178 struct hostif_hdr header; 179 - u32 mib_status; 180 - u32 mib_attribute; 179 + __le32 mib_status; 180 + __le32 mib_attribute; 181 181 } __packed; 182 182 183 183 struct hostif_power_mgmt_request_t { 184 184 struct hostif_hdr header; 185 - u32 mode; 185 + __le32 mode; 186 186 #define POWER_ACTIVE 1 187 187 #define POWER_SAVE 2 188 - u32 wake_up; 188 + __le32 wake_up; 189 189 #define SLEEP_FALSE 0 190 190 #define SLEEP_TRUE 1 /* not used */ 191 - u32 receiveDTIMs; 191 + __le32 receiveDTIMs; 192 192 #define DTIM_FALSE 0 193 193 #define DTIM_TRUE 1 194 194 } __packed; ··· 509 509 #define ACTIVE_SCAN 0 510 510 #define PASSIVE_SCAN 1 511 511 u8 pad[3]; 512 - u32 ch_time_min; 513 - u32 ch_time_max; 512 + __le32 ch_time_min; 513 + __le32 ch_time_max; 514 514 struct channel_list_t channel_list; 515 515 struct ssid_t ssid; 516 516 } __packed; ··· 535 535 u8 sq; 536 536 u8 noise; 537 537 u8 link_speed; 538 - u32 tx_frame; 539 - u32 rx_frame; 540 - u32 tx_error; 541 - u32 rx_error; 538 + __le32 tx_frame; 539 + __le32 rx_frame; 540 + __le32 tx_error; 541 + __le32 rx_error; 542 542 } __packed; 543 543 544 544 enum sleep_mode_type {