iwlwifi: make bitfield a u32 instead of u16
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Feb 2018 12:50:06 +0000 (14:50 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Apr 2018 12:18:07 +0000 (15:18 +0300)
The bitfield we use in struct iwl_cfg contains 17 bits, but we declare
it as u16.  The compiler doesn't seem to have any problems with that
(it probably automatically makes it u32), but it's cleaner to use a
type that is long enough for all the flags.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-config.h

index cfd14e5ea59c7f1af7e590849dd8daf6d783cd33..c503b26793f6dd77fb63da69c7a838c059eb12be 100644 (file)
@@ -420,7 +420,7 @@ struct iwl_cfg {
        u32 soc_latency;
        u16 nvm_ver;
        u16 nvm_calib_ver;
-       u16 rx_with_siso_diversity:1,
+       u32 rx_with_siso_diversity:1,
            bt_shared_single_ant:1,
            internal_wimax_coex:1,
            host_interrupt_operation_mode:1,