wifi: iwlwifi: api: use __le16 instead of u16
authorJohannes Berg <johannes.berg@intel.com>
Thu, 1 Jun 2023 14:20:04 +0000 (17:20 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 11:41:26 +0000 (13:41 +0200)
Even for reserved values we shouldn't use u16, that's just
error prone. Fix this to __le16.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230601171633.29ebf70aa64e.I1263f6724e1c70ff5541f447b9744f143ee736a3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/power.h

index f92cac1..85d89f5 100644 (file)
@@ -537,7 +537,7 @@ union iwl_ppag_table_cmd {
 struct iwl_sar_offset_mapping_cmd {
        u8 offset_map[MCC_TO_SAR_OFFSET_TABLE_ROW_SIZE]
                [MCC_TO_SAR_OFFSET_TABLE_COL_SIZE];
-       u16 reserved;
+       __le16 reserved;
 } __packed; /*SAR_OFFSET_MAPPING_TABLE_CMD_API_S*/
 
 /**