bitops: Provide generic sign_extend32 function
This patch moves code out from wireless drivers where two different functions are defined in three code locations for the same purpose and provides a common function to sign extend a 32-bit value. Signed-off-by:Andreas Herrmann <andreas.herrmann3@amd.com> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- drivers/net/wireless/ath/ath5k/phy.c 1 addition, 7 deletionsdrivers/net/wireless/ath/ath5k/phy.c
- drivers/net/wireless/ath/ath9k/ar5008_phy.c 6 additions, 6 deletionsdrivers/net/wireless/ath/ath9k/ar5008_phy.c
- drivers/net/wireless/ath/ath9k/ar9002_phy.c 4 additions, 4 deletionsdrivers/net/wireless/ath/ath9k/ar9002_phy.c
- drivers/net/wireless/ath/ath9k/ar9003_phy.c 6 additions, 6 deletionsdrivers/net/wireless/ath/ath9k/ar9003_phy.c
- drivers/net/wireless/ath/ath9k/hw.h 0 additions, 6 deletionsdrivers/net/wireless/ath/ath9k/hw.h
- drivers/net/wireless/iwlwifi/iwl-4965.c 2 additions, 18 deletionsdrivers/net/wireless/iwlwifi/iwl-4965.c
- include/linux/bitops.h 11 additions, 0 deletionsinclude/linux/bitops.h
Loading
Please register or sign in to comment