iwlwifi: use upper_32_bits/lower_32_bits where appropriate
That's a bit nicer than open-coding it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:

committed by
Luca Coelho

parent
1c17627bf5
commit
bd31dd9d14
@@ -54,8 +54,8 @@ IWL_EXPORT_SYMBOL(iwl_write32);
|
||||
void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val)
|
||||
{
|
||||
trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val);
|
||||
iwl_trans_write32(trans, ofs, val & 0xffffffff);
|
||||
iwl_trans_write32(trans, ofs + 4, val >> 32);
|
||||
iwl_trans_write32(trans, ofs, lower_32_bits(val));
|
||||
iwl_trans_write32(trans, ofs + 4, upper_32_bits(val));
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_write64);
|
||||
|
||||
|
Reference in New Issue
Block a user