OSDN Git Service

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)
commitf5678bfe1cdc0a2b51c0ebd3adf1ac1b57aa5f64
tree4fd31b158092c04101ece471316f79479b42bbbc
parent7ffe556230b87ef4f252fb97bf87302526fe499d
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