File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
drivers/net/wireless/intel/iwlwifi Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ struct iwl_rb_status {
647647
648648static inline u8 iwl_get_dma_hi_addr (dma_addr_t addr )
649649{
650- return (sizeof (addr ) > sizeof (u32 ) ? (addr >> 16 ) >> 16 : 0 ) & 0xF ;
650+ return (sizeof (addr ) > sizeof (u32 ) ? upper_32_bits (addr ) : 0 ) & 0xF ;
651651}
652652/**
653653 * struct iwl_tfd_tb transmit buffer descriptor within transmit frame descriptor
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ IWL_EXPORT_SYMBOL(iwl_write32);
5454void iwl_write64 (struct iwl_trans * trans , u64 ofs , u64 val )
5555{
5656 trace_iwlwifi_dev_iowrite64 (trans -> dev , ofs , val );
57- iwl_trans_write32 (trans , ofs , val & 0xffffffff );
58- iwl_trans_write32 (trans , ofs + 4 , val >> 32 );
57+ iwl_trans_write32 (trans , ofs , lower_32_bits ( val ) );
58+ iwl_trans_write32 (trans , ofs + 4 , upper_32_bits ( val ) );
5959}
6060IWL_EXPORT_SYMBOL (iwl_write64 );
6161
You can’t perform that action at this time.
0 commit comments