]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8821ae: Replace local bit manipulation macros
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 20 May 2019 17:23:57 +0000 (12:23 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 May 2019 12:34:58 +0000 (15:34 +0300)
commit8109ab74ab662aade86f7a294be5057dd13b94e6
tree4fd31b158092c04101ece471316f79479b42bbbc
parent7533947ed82aa2d47eed814ebc406290eb275d07
rtlwifi: rtl8821ae: Replace local bit manipulation macros

This driver uses a set of local macros to manipulate the RX and TX
descriptors, which are all little-endian quantities. These macros
are replaced by the bitfield macros le32p_replace_bits() and
le32_get_bits(). In several places, the macros operated on an entire
32-bit word. In these cases, a direct read or replacement is used.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.h
drivers/net/wireless/realtek/rtlwifi/wifi.h